Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh


Hello World Example


Code Block
themeEmacs
vi main.rs


Code Block
fn main() {
    println!("Hello, world!");
}


Compile

Code Block
themeEmacs
rustc ./main.rs


Run

Code Block
themeEmacs
./main
Code Block
Hello, world!






References

ReferenceURL
The Rust Programming Languagehttps://doc.rust-lang.org/book/title-page.html