A Low-level systems programming language that allows for memory safety.
Installation
Rustup (recommended)
Alternate Installation
sudo pacman -S rust rust-cargo
Compile and Run (rustc)
rustc file.rs
./file
Project Setup (cargo)
cargo new <projectname>
orcargo init
- After writing all files, do
cargo build
cargo run
will run the .rs file in/src
Concepts
Tools
Foundation
- Rust Variables
- Rust Mutability
- Rust Tuple
- Rust Functions
- Rust Conditional Statements
- Rust Match
- Rust Namespaces
- Rust Structs
- Rust Vector
- Rust Macro
- Rust Enums
- Rust Iterators
- Rust Strings
Errors & Handling
Extra
Guides
Rust Boilerplate
fn main(){
println!("Hello World!");
}