mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +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()
|
|
}
|