mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-19 05:15:53 +00:00
12 lines
209 B
Rust
12 lines
209 B
Rust
#[link(name = "native-staticlib", kind = "static", modifiers = "+bundle")]
|
|
extern "C" {
|
|
pub fn native_func();
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn wrapped_func() {
|
|
unsafe {
|
|
native_func();
|
|
}
|
|
}
|