Learn rust basics 🦀
Learning rust via Learn by examples
Generate New Rust project using below command
cargo new <project-name> <options>
command options
--bin
for binary--lib
for library project
Run Project
cargo run
- Hello World
- Primitives
- Custom Types
- Variable Bindings
- Types
- Conversion
- Expressions
- Flow of Control
- if-else
- loop
- while
- for
- match
- Functions
- Modules
- Crates
- Cargo
- Generics
- Scoping rules
- Traits
- Attributes
- macro_rules!
- Error handling
- Std library types
- Std misc
- Testing
- Unsafe Operations
- Compatibility
- Meta
Additionals