tenfourfox/dom/media/gtest/hello.rs
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

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()
}