{"id":16278558,"url":"https://github.com/dezoito/rustlings-commented-solutions","last_synced_at":"2025-04-08T17:34:14.869Z","repository":{"id":200193106,"uuid":"704999168","full_name":"dezoito/rustlings-commented-solutions","owner":"dezoito","description":"Commented solutions for Rustlings 5.6.1","archived":false,"fork":false,"pushed_at":"2023-10-14T21:20:54.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T13:50:35.597Z","etag":null,"topics":["beginner","rust","rustlings-solution"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dezoito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-14T18:34:46.000Z","updated_at":"2024-01-25T13:27:24.000Z","dependencies_parsed_at":"2023-10-16T02:42:38.490Z","dependency_job_id":"8be10ff0-e19e-4f61-b74b-52aea01e8c23","html_url":"https://github.com/dezoito/rustlings-commented-solutions","commit_stats":null,"previous_names":["dezoito/rustlings_commented_solutions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frustlings-commented-solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frustlings-commented-solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frustlings-commented-solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frustlings-commented-solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dezoito","download_url":"https://codeload.github.com/dezoito/rustlings-commented-solutions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247893399,"owners_count":21013887,"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":["beginner","rust","rustlings-solution"],"created_at":"2024-10-10T18:58:57.545Z","updated_at":"2025-04-08T17:34:14.844Z","avatar_url":"https://github.com/dezoito.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦀 Commented solutions for Rustlings 5.6.1\n\nThis repository contains **commented** solutions for the [Ruslings](https://github.com/rust-lang/rustlings/) exercises, adding brief notes on what was necessary to complete the challenges (except where too obvious).\n\nWhenever relevant, I also added different ways that the code could be written (in many cases in a more idiomatic way).\n\n### Note on comments\n\nI use the [Better Comments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments) VSCode extension.\n\nWhile regular comments are either original to the files or used to include different solutions in the same code block, comments in the format below were used to display notes or explanations (notice the \"\\*\"):\n\n```rs\n// * This is an explanation\n```\n\n### References\n\nI used this excellent repository as a learning reference, and to compare my solutions to already existing ones:\n\nhttps://github.com/wh5a/rustlings-solutions/\n\nThe rusting exercises, particulary the hints, offer many direct references to the documentation.\n\n## Exercise to [Book](https://doc.rust-lang.org/book/) Chapter mapping\n\n| Exercise        | Book Chapter |\n| --------------- | ------------ |\n| variables       | §3.1         |\n| functions       | §3.3         |\n| if              | §3.5         |\n| primitive_types | §3.2, §4.3   |\n| vecs            | §8.1         |\n| move_semantics  | §4.1-2       |\n| structs         | §5.1, §5.3   |\n| enums           | §6, §18.3    |\n| strings         | §8.2         |\n| modules         | §7           |\n| hashmaps        | §8.3         |\n| options         | §10.1        |\n| error_handling  | §9           |\n| generics        | §10          |\n| traits          | §10.2        |\n| tests           | §11.1        |\n| lifetimes       | §10.3        |\n| iterators       | §13.2-4      |\n| threads         | §16.1-3      |\n| smart_pointers  | §15, §16.3   |\n| macros          | §19.6        |\n| clippy          | §21.4        |\n| conversions     | n/a          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdezoito%2Frustlings-commented-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdezoito%2Frustlings-commented-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdezoito%2Frustlings-commented-solutions/lists"}