6f5853f5a1
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
11 lines
149 B
Rust
11 lines
149 B
Rust
/*
|
|
Can we bind native things?
|
|
*/
|
|
|
|
#[abi = "cdecl"]
|
|
native mod rustrt {
|
|
fn rand_new() -> *libc::c_void;
|
|
}
|
|
|
|
fn main() { bind rustrt::rand_new(); }
|