Skip to content

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.

License

Notifications You must be signed in to change notification settings

rixrix/rust-daily-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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"
]
  1. 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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Languages