- Statically typed language
- Systems programming language (lies betweeen LLP and HLP)
- No Garbage Collection -> Memory Management is Deterministic -> Predictible performance optimization and output
- The Rust book: https://doc.rust-lang.org/book/
- Rust by example: https://doc.rust-lang.org/rust-by-example/hello/print.html
- Rustlings: https://github.com/rust-lang/rustlings
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
<!-- To compile rust program -->
rustc filename.rs
<!-- To execute the executable file -->
./filename.exe
- Used to build Rust projects
- Help you easily use and mange Rust basd dependency/packages
cargo new project_name
cd project_name
cargo run
Two types of data types:
-
Four Scalar Types: Store Single Values
- Signed & Unsigned Integers
- Floating-Point Numbers
- Booleans
- Characters
-
Compound Types: Store Multiple Values
- Arrays
- Vectors
- Strings
- Tuples
- Maps
- #![no_std] : This Used to prevent rust from loading the standard library.