mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-12-29 02:31:05 +00:00
7 lines
164 B
Rust
7 lines
164 B
Rust
#[no_mangle]
|
|
pub extern fn test_rust() -> *const u8 {
|
|
// NB: rust &str aren't null terminated.
|
|
let greeting = "hello from rust.\0";
|
|
greeting.as_ptr()
|
|
}
|