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