- Core: traits and safe access to data
- Package manager: cargo
- Common indent: 4 spaces
- Print line is called "marco" (by exclamation mark
!
) - Shadowing: Define a variable with same name but different data types
- String
- Control Flow
- Loop
- Variable
- Array
- Memory and OwnerShip
- Struct
- Closure
- Enum and Option
- Generics
- Traits
- Lifetimes
- Smart pointer
- Macros
- Q/A
Create project:
cargo new <folder_name>
or
cargo init
Compile code:
rustc <file_name>
cargo r
cargo run
cargo build
cargo build --release