diff --git a/src/lib.rs b/src/lib.rs index c44e12b..393a7aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,12 @@ extern crate libc; +/// Call this somewhere to force Rust to link this module. +/// The call doesn't need to execute, just exist. +/// +/// See https://github.com/rust-lang/rust/issues/47384 +pub fn init() {} + #[no_mangle] extern "C" fn posix_memalign( memptr: *mut *mut libc::c_void,