1 2 3 4 5 6 7 8 9 10 11
#![crate_type = "lib"] #[repr(C)] pub struct TestUnion { _val: u64, } #[link(name = "ctest", kind = "static")] extern "C" { pub fn give_back(tu: TestUnion) -> u64; }