An open API service indexing awesome lists of open source software.

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.

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/)