My daily Rust journey in 'Rust Daily Snippets' a personal repository documenting my progress and projects in Rust programming. From web apps to command-line tools, discover my daily learnings and creations.
Enhancing Rust proficiency through a curated selection of resources:
- the comprehensive Rust eBookshelf, https://dieterplex.github.io/rust-ebookshelf/
- hard copy of 'Programming Rust' by O'Reilly, https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/
My learning method is straightforward:
- Absorb knowledge in bite-sized portions daily.
- Transcribe code by hand using an E-Ink device for tactile learning, reinforcing muscle memory
- Then transfer it to VS Code once memorized.
- webapp
- Actix
- Axum
- Generics
- Basic with Ord trait
- Enums
- Basic with Option trait
- Unsafe
- mutate global static variable
- Ownership
- Dangling reference
- Lifetime
- basic reference
- missing lifetime
- fixed missing lifetime
- Patterns
- newtype w/ Credit Card number masking
- Debug
- with derive
- Rust
- Update Cargo.toml members array ie.
members = [
...
"crates/your-crates-name"
]
- Run cargo, and add your new crates
cargo new crates/your-crates-name
Specify the package you want to try. Remove the "crates/" folder
cargo run --package your-crates-name
Rust only!