November 2018
Intermediate to advanced
390 pages
10h 8m
English
Installing Rust is very simple; you just need to run the following installation script, and it will automatically install. This rustup script is shared by https://www.rust-lang.org/en-US/:
curl -sSf https://static.rust-lang.org/rustup.sh | sh
Once you have completed the installation, just try to run rustc -v to verify the installation version. rustc is a rust compiler.
Lets get started by using a simple hello code:
// This is the main functionfn main() { // The statements here will be executed when the compiled binary is calledprintln!("Hello. This is PacktPublisher!"); //println is Macro which prints text to console.}
Read now
Unlock full access