mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-14 22:55:40 +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() {}
|