{"id":21413070,"url":"https://github.com/rixrix/rust-daily-snippets","last_synced_at":"2025-08-08T19:05:24.309Z","repository":{"id":234165007,"uuid":"788369922","full_name":"rixrix/rust-daily-snippets","owner":"rixrix","description":"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.","archived":false,"fork":false,"pushed_at":"2024-07-15T05:12:20.000Z","size":1189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T05:15:00.214Z","etag":null,"topics":["education","language","rust","snippets"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rixrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-18T09:29:52.000Z","updated_at":"2024-07-15T05:12:23.000Z","dependencies_parsed_at":"2024-05-17T12:35:13.203Z","dependency_job_id":"bbff27cc-5637-4c0b-aa68-c652f0c007c5","html_url":"https://github.com/rixrix/rust-daily-snippets","commit_stats":null,"previous_names":["rixrix/rust-daily-snippets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Frust-daily-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Frust-daily-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Frust-daily-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Frust-daily-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixrix","download_url":"https://codeload.github.com/rixrix/rust-daily-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910761,"owners_count":20367544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["education","language","rust","snippets"],"created_at":"2024-11-22T18:16:40.770Z","updated_at":"2025-03-16T18:22:49.517Z","avatar_url":"https://github.com/rixrix.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./assets/logo.png\" height=\"300\"\u003e\n    \u003ch3 align=\"center\"\u003eRust Daily Snippets\u003c/h3\u003e\n\u003c/p\u003e\n\nMy 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.\n\nEnhancing Rust proficiency through a curated selection of resources:\n\n- the comprehensive Rust eBookshelf, https://dieterplex.github.io/rust-ebookshelf/\n- hard copy of 'Programming Rust' by O'Reilly, https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/\n\nMy learning method is straightforward:\n\n1. Absorb knowledge in bite-sized portions daily.\n2. Transcribe code by hand using an E-Ink device for tactile learning, reinforcing muscle memory\n3. Then transfer it to VS Code once memorized.\n\n## Features\n\n- webapp\n  - Actix\n  - Axum\n- Generics\n  - Basic with Ord trait\n- Enums\n  - Basic with Option trait\n- Unsafe\n  - mutate global static variable\n- Ownership\n  - Dangling reference\n- Lifetime\n  - basic reference\n  - missing lifetime\n  - fixed missing lifetime\n- Patterns\n  - newtype w/ Credit Card number masking\n- Debug\n  - with derive\n  \n## Requirements\n\n- Rust\n\n## How to add new crates\n\n1. Update Cargo.toml members array ie.\n\n```\nmembers = [\n  ...\n  \"crates/your-crates-name\"\n]\n```\n\n2. Run cargo, and add your new crates\n\n```\ncargo new crates/your-crates-name\n```\n\n## How to run a crates package\n\nSpecify the package you want to try. Remove the \"crates/\" folder\n\n```\ncargo run --package your-crates-name\n```\n\n## Tech Stack\n\n\u003e Rust only!\n\n## License\n\n[The Unlicense](https://choosealicense.com/licenses/unlicense/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Frust-daily-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixrix%2Frust-daily-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Frust-daily-snippets/lists"}