https://github.com/rixrix/rust-daily-snippets
RustDailySnippets: My personal repository for daily Rust code snippets. Follow along as I commit to daily Rust coding practice, sharing small yet meaningful pieces of code as I continue my journey in mastering Rust programming language.
https://github.com/rixrix/rust-daily-snippets
education language rust snippets
Last synced: 6 months ago
JSON representation
RustDailySnippets: My personal repository for daily Rust code snippets. Follow along as I commit to daily Rust coding practice, sharing small yet meaningful pieces of code as I continue my journey in mastering Rust programming language.
- Host: GitHub
- URL: https://github.com/rixrix/rust-daily-snippets
- Owner: rixrix
- License: unlicense
- Created: 2024-04-18T09:29:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T05:12:20.000Z (over 1 year ago)
- Last Synced: 2025-01-23T05:15:00.214Z (about 1 year ago)
- Topics: education, language, rust, snippets
- Language: Rust
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rust Daily Snippets
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:
1. Absorb knowledge in bite-sized portions daily.
2. Transcribe code by hand using an E-Ink device for tactile learning, reinforcing muscle memory
3. Then transfer it to VS Code once memorized.
## Features
- 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
## Requirements
- Rust
## How to add new crates
1. Update Cargo.toml members array ie.
```
members = [
...
"crates/your-crates-name"
]
```
2. Run cargo, and add your new crates
```
cargo new crates/your-crates-name
```
## How to run a crates package
Specify the package you want to try. Remove the "crates/" folder
```
cargo run --package your-crates-name
```
## Tech Stack
> Rust only!
## License
[The Unlicense](https://choosealicense.com/licenses/unlicense/)