DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (1aeaa33a64f9)

VCS Links

Line Code
1 2 3 4 5 6
#[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()
}