{"id":50735940,"url":"https://github.com/corrode/refactoring-rust","last_synced_at":"2026-06-10T13:30:48.732Z","repository":{"id":358962872,"uuid":"1242127119","full_name":"corrode/refactoring-rust","owner":"corrode","description":"Writing Better Rust: a refactoring workshop","archived":false,"fork":false,"pushed_at":"2026-05-19T19:25:50.000Z","size":2814,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T22:57:51.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/corrode.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-18T06:44:33.000Z","updated_at":"2026-05-19T22:31:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/corrode/refactoring-rust","commit_stats":null,"previous_names":["corrode/refactoring-rust"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/corrode/refactoring-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corrode%2Frefactoring-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corrode%2Frefactoring-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corrode%2Frefactoring-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corrode%2Frefactoring-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corrode","download_url":"https://codeload.github.com/corrode/refactoring-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corrode%2Frefactoring-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34155422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2026-06-10T13:30:48.150Z","updated_at":"2026-06-10T13:30:48.727Z","avatar_url":"https://github.com/corrode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refactoring Rust\n\n*Hands-on exercises for writing more idiomatic, maintainable Rust.*\n\n![Sample exercise](./assets/exercise1.jpg)\n\nWith Rustlings and 100 exercises to learn Rust, there exist two excellent\nresources for learning Rust.\n\nWhat I found to be lacking was a more advanced course, which teaches Rust\nidioms and patterns by means of refactoring exercises, for typical real-world\nscenarios.\n\nThat's what \"Refactoring Rust\" is all about.\n\nEach exercise asks you to take a small, working-but-awkward piece of code\nand make it more idiomatic. There is typically more than one good answer.\nThe goal is not to be a definitive source of truth, but rather to give us\nsomething concrete to talk about.\n\n## Running an exercise\n\n```sh\ncargo run --example 01_starts_with_uppercase\ncargo test --example 01_starts_with_uppercase\n```\n\n## Overview\n\nThe examples are numbered roughly by complexity. We'll start with quick\nwarm-ups everyone can finish in a few minutes and gradually move into\nlarger structural refactors. Feel free to skip around: each example is\nself-contained.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrode%2Frefactoring-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorrode%2Frefactoring-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrode%2Frefactoring-rust/lists"}