You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


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

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