wasmer/examples/no_abi_simple_plugin.rs
2019-07-01 11:17:31 -07:00

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() {}