1 2 3 4 5 6 7 8 9 10
#[link(name = "extern_1", kind = "raw-dylib")] extern { fn extern_fn_1(); } pub fn library_function() { unsafe { extern_fn_1(); } }