mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
12 lines
168 B
Rust
12 lines
168 B
Rust
|
extern "C" {
|
||
|
fn it_works() -> i32;
|
||
|
}
|
||
|
|
||
|
#[no_mangle]
|
||
|
pub fn plugin_entrypoint(n: i32) -> i32 {
|
||
|
let result = unsafe { it_works() };
|
||
|
result + n
|
||
|
}
|
||
|
|
||
|
fn main() {}
|