mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 22:34:14 +00:00
10 lines
132 B
Rust
10 lines
132 B
Rust
#[no_mangle]
|
|
pub extern "C" fn hello() {
|
|
println!("Hello world!");
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn number() -> u32 {
|
|
42
|
|
}
|