1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![cfg(target_arch = "wasm32")] #[no_mangle] pub fn fluxions(x: usize) -> usize { unsafe { imported(x) } } #[no_mangle] pub fn quicksilver(_: usize) {} extern "C" { fn imported(x: usize) -> usize; } #[no_mangle] pub fn main() {}