Install Rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Hello World Example
vi main.rs
fn main() { println!("Hello, world!"); }
Compile
rustc ./main.rs
Run
./main
Hello, world!
References
Reference | URL |
---|---|
The Rust Programming Language | https://doc.rust-lang.org/book/title-page.html |