{"id":20826703,"url":"https://github.com/cedrickchee/rustlings-solutions","last_synced_at":"2026-06-24T06:33:10.792Z","repository":{"id":138118815,"uuid":"221905353","full_name":"cedrickchee/rustlings-solutions","owner":"cedrickchee","description":"Small exercises to get you used to reading and writing Rust code!","archived":false,"fork":false,"pushed_at":"2019-11-15T12:04:17.000Z","size":612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T07:27:37.745Z","etag":null,"topics":["beginner-friendly","rust","rustlings-solution"],"latest_commit_sha":null,"homepage":"https://github.com/rust-lang/rustlings","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedrickchee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2019-11-15T10:56:31.000Z","updated_at":"2025-02-21T15:51:59.000Z","dependencies_parsed_at":"2024-03-26T12:15:24.739Z","dependency_job_id":null,"html_url":"https://github.com/cedrickchee/rustlings-solutions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedrickchee/rustlings-solutions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Frustlings-solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Frustlings-solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Frustlings-solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Frustlings-solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickchee","download_url":"https://codeload.github.com/cedrickchee/rustlings-solutions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Frustlings-solutions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272289745,"owners_count":24907802,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-friendly","rust","rustlings-solution"],"created_at":"2024-11-17T23:09:48.391Z","updated_at":"2026-06-24T06:33:05.747Z","avatar_url":"https://github.com/cedrickchee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![crab pet](https://i.imgur.com/LbZJgmm.gif)\n\n# rustlings 🦀❤️\n\nGreetings and welcome to `rustlings`. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!\n\n_...looking for the old, web-based version of Rustlings? Try [here](https://github.com/rust-lang/rustlings/tree/rustlings-1)_\n\nAlternatively, for a first-time Rust learner, there's several other resources:\n\n- [The Book](https://doc.rust-lang.org/book/index.html) - The most comprehensive resource for learning Rust, but a bit theoretical sometimes. You will be using this along with Rustlings!\n- [Rust By Example](https://doc.rust-lang.org/rust-by-example/index.html) - Learn Rust by solving little exercises! It's almost like `rustlings`, but online\n\n## Getting Started\n\n_Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing `xcode-select --install`._\n\n_Note: If you have Xcode 10+ installed, you also need to install the package file found at `/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg`._\n\nYou will need to have Rust installed. You can get it by visiting https://rustup.rs. This'll also install Cargo, Rust's package/project manager.\n\n## MacOS/Linux\n\nJust run:\n\n```bash\ncurl -L https://git.io/rustlings | bash\n# Or if you want it to be installed to a different path:\ncurl -L https://git.io/rustlings | bash -s mypath/\n```\n\nThis will install Rustlings and give you access to the `rustlings` command. Run it to get started!\n\n## Windows\n\nYou can run:\n\n```ps\nInvoke-WebRequest https://git.io/rustlings-win | Select-Object -ExpandProperty Content | Out-File $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1\n```\n\nTo install Rustlings. Same as on MacOS/Linux, you will have access to the `rustlings` command after it.\n\n## Manually\n\nBasically: Clone the repository, checkout to the latest tag, run `cargo install`.\n\n```bash\ngit clone https://github.com/rust-lang/rustlings\ncd rustlings\ngit checkout tags/2.0.0 # or whatever the latest version is (find out at https://github.com/rust-lang/rustlings/releases/latest)\ncargo install --force --path .\n```\n\nIf there are installation errors, ensure that your toolchain is up to date. For the latest, run:\n```bash\nrustup update\n```\n\nThen, same as above, run `rustlings` to get started.\n\n## Doing exercises\n\nThe exercises are sorted by topic and can be found in the subdirectory `rustlings/exercises/\u003ctopic\u003e`. For every topic there is an additional README file with some resources to get you started on the topic. We really recommend that you have a look at them before you start.\n\nThe task is simple. Most exercises contain an error that keep it from compiling, and it's up to you to fix it! Some exercises are also run as tests, but rustlings handles them all the same. To run the exercises in the recommended order, execute:\n\n```bash\nrustlings watch\n```\n\nThis will try to verify the completion of every exercise in a predetermined order (what we think is best for newcomers). It will also rerun automatically every time you change a file in the `exercises/` directory. If you want to only run it once, you can use:\n\n```bash\nrustlings verify\n```\n\nThis will do the same as watch, but it'll quit after running.\n\nIn case you want to go by your own order, or want to only verify a single exercise, you can run:\n\n```bash\nrustlings run myExercise1\n```\n\nIn case you get stuck, you can run the following command to get a hint for your\nexercise:\n\n``` bash\nrustlings hint myExercise1\n```\n\n## Testing yourself\n\nAfter every couple of sections, there will be a test that'll test your knowledge on a bunch of sections at once. These tests are found in `exercises/testN.rs`.\n\n## Completion\n\nRustlings isn't done; there are a couple of sections that are very experimental and don't have proper documentation. These include:\n\n- Errors (`exercises/errors/`)\n- Option (`exercises/option/`)\n- Result (`exercises/result/`)\n- Move Semantics (could still be improved, `exercises/move_semantics/`)\n\nAdditionally, we could use exercises on a couple of topics:\n\n- Structs\n- Better ownership stuff\n- `impl`\n- ??? probably more\n\nIf you are interested in improving or adding new ones, please feel free to contribute! Read on for more information :)\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## Credits\n\n`rustlings` was originally written by [Carol](https://github.com/carols10cents)!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Frustlings-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickchee%2Frustlings-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Frustlings-solutions/lists"}