Setup a Rust project properly! More info can be found at Holy Bible of Rust
Obtain Rust
Script below includes the Rust Compilerrustc, rustup the Rust tool chain installer and Cargo
# Starts the installation of the `rustup` tool - managing the version of Rust, which installs the latest stable version of Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustc --version # Verify rust is installed properly
Cargo Cheatsheet
cargo check # Make sure the codes can be compiled - fast than actually compilingcargo build # Compilationcargo build --release # Compilation + optimisationcargo run # Compilation + Runcargo run --release # cargo run + optimisation