{"id":13617813,"url":"https://github.com/Rust-Coding-Guidelines/rust-coding-guidelines-zh","last_synced_at":"2025-04-14T06:35:47.000Z","repository":{"id":37932157,"uuid":"353916022","full_name":"Rust-Coding-Guidelines/rust-coding-guidelines-zh","owner":"Rust-Coding-Guidelines","description":"Rust 编码规范 中文版 （非官方）","archived":false,"fork":false,"pushed_at":"2023-04-19T06:43:51.000Z","size":18324,"stargazers_count":787,"open_issues_count":6,"forks_count":71,"subscribers_count":23,"default_branch":"main","last_synced_at":"2024-08-01T20:49:06.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rust-coding-guidelines.github.io/rust-coding-guidelines-zh/","language":"JavaScript","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/Rust-Coding-Guidelines.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","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}},"created_at":"2021-04-02T05:32:26.000Z","updated_at":"2024-07-23T05:14:46.000Z","dependencies_parsed_at":"2024-01-14T07:03:13.531Z","dependency_job_id":null,"html_url":"https://github.com/Rust-Coding-Guidelines/rust-coding-guidelines-zh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rust-Coding-Guidelines%2Frust-coding-guidelines-zh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rust-Coding-Guidelines%2Frust-coding-guidelines-zh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rust-Coding-Guidelines%2Frust-coding-guidelines-zh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rust-Coding-Guidelines%2Frust-coding-guidelines-zh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rust-Coding-Guidelines","download_url":"https://codeload.github.com/Rust-Coding-Guidelines/rust-coding-guidelines-zh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223622055,"owners_count":17174815,"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":[],"created_at":"2024-08-01T20:01:48.417Z","updated_at":"2024-11-08T02:31:20.426Z","avatar_url":"https://github.com/Rust-Coding-Guidelines.png","language":"JavaScript","readme":"# Rust 编码规范 中文版\n\n## 状态\n\n- 《Rust 编码规范》目前为 V 1.0 beta 试行版，改进内容参考 [Changelog](./Changelog.md)\n\n## 介绍\n\n据了解，Rust 社区内有些公司和组织都各自维护着自己的编码规范。下面罗列了一些已经公开的：\n\n- [官方｜Rust API 编写指南](https://rust-lang.github.io/api-guidelines/about.html)\n- [官方 | Rust Style Guide](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md)\n- [Rust's Unsafe Code Guidelines Reference](https://rust-lang.github.io/unsafe-code-guidelines/)\n- [法国国家信息安全局 | Rust 安全（Security）规范](https://anssi-fr.github.io/rust-guide)\n- [Facebook Diem 项目 Rust 编码规范(已过期)](https://developers.diem.com/docs/core/coding-guidelines/)\n- [Apache Teaclave 安全计算平台 | Rust 开发规范](https://teaclave.apache.org/docs/rust-guildeline/)\n- [PingCAP | 编码风格指南（包括 Rust 和 Go 等）](https://github.com/pingcap/style-guide)\n- [Google Fuchsia 操作系统 Rust 开发指南](https://fuchsia.dev/fuchsia-src/development/languages/rust)\n- [RustAnalyzer 编码风格指南](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md)\n- [使用 Rust 设计优雅的 API](https://deterministic.space/elegant-apis-in-rust.html)\n- [Rust FFI 指南](https://michael-f-bryan.github.io/rust-ffi-guide/)\n- [大约 478 条 Clippy lint](https://rust-lang.github.io/rust-clippy/master/index.html)\n- [lints in the rustc book ](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html)\n- [Dtolnay 对 crates.io 中 clippy lint 应用统计](https://github.com/dtolnay/noisy-clippy)\n\n\n但是随着 Rust 日益普及，统一的编码规范需求也逐渐浮出水面，本规范应运而生。\n\n![org](./src/img/org.png)\n\n本规范致力于成为统一的 Rust 编码规范，并联合国内外公司共同维护。\n\n公司可以依赖本规范，结合自己的业务领域和团队习惯，形成自己的编码规范，并可以在日常实践中反哺本规范，让本规范更加完善。\n\n\n\n","funding_links":[],"categories":["JavaScript","书籍/教程/文档"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRust-Coding-Guidelines%2Frust-coding-guidelines-zh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRust-Coding-Guidelines%2Frust-coding-guidelines-zh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRust-Coding-Guidelines%2Frust-coding-guidelines-zh/lists"}