mirror of
https://github.com/fluencelabs/asmble
synced 2025-06-28 05:51:39 +00:00
First Rust example for issue #9
This commit is contained in:
4
examples/rust-simple/src/lib.rs
Normal file
4
examples/rust-simple/src/lib.rs
Normal file
@ -0,0 +1,4 @@
|
||||
#[no_mangle]
|
||||
pub extern "C" fn add_one(x: i32) -> i32 {
|
||||
x + 1
|
||||
}
|
Reference in New Issue
Block a user