1 2 3 4 5 6
#![crate_type = "dylib"] #[link(name = "foo", kind = "static")] extern "C" { pub fn foo(); }