[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-80512":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":12,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":9,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":15,"starSnapshotCount":15,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},80512,"refactoring-rust","corrode\u002Frefactoring-rust","corrode","Writing Better Rust: a refactoring workshop",null,"Rust",85,7,78,1,0,3,2.71,false,"main",[],"2026-06-12 02:04:03","# Refactoring Rust\n\n*Hands-on exercises for writing more idiomatic, maintainable Rust.*\n\n![Sample exercise](.\u002Fassets\u002Fexercise1.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","Refactoring Rust 是一个专注于通过重构练习来提高Rust代码质量的工作坊。该项目提供了多个实际场景下的重构练习，旨在帮助开发者编写更符合Rust语言习惯、更易于维护的代码。每个练习都基于一段可以运行但不够优雅的代码，鼓励用户尝试多种改进方式以达到更佳实践。适合已经掌握了Rust基础语法并希望进一步提升编程技能的学习者使用，在实践中学习如何优化现有代码结构与风格。",2,"2026-06-11 04:01:01","CREATED_QUERY"]