Docs.rs
hello_extern-0.1.1
Platform
i686-apple-darwin
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
hello_extern 0.1.1
how to use an external crate
Crate
Source
Builds
Feature flags
Documentation
Hide files
..
lib.rs
1
2
3
4
//
Rust File: src/lib.rs
pub
fn
hello
(
)
->
&
'static
str
{
"
Hello, World!
"
}