1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//@ args = '--skip foo --std-feature' #![no_std] include!(env!("BINDINGS")); struct Test; export!(Test); impl exports::exports::Guest for Test { fn bar() {} } #[unsafe(export_name = "exports#foo")] pub extern "C" fn foo() {}