{"id":19676831,"url":"https://github.com/rust-lang-cn/edition-guide-cn","last_synced_at":"2025-07-21T04:08:45.088Z","repository":{"id":69784122,"uuid":"185014733","full_name":"rust-lang-cn/edition-guide-cn","owner":"rust-lang-cn","description":"Rust 版本指南(Rust Edition Guide 中文版)","archived":false,"fork":false,"pushed_at":"2022-10-01T06:47:31.000Z","size":2944,"stargazers_count":30,"open_issues_count":2,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-29T03:41:20.235Z","etag":null,"topics":["book","rust","rust-lang-cn"],"latest_commit_sha":null,"homepage":"https://rustwiki.org/zh-CN/edition-guide/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-lang-cn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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-05-05T10:12:14.000Z","updated_at":"2025-03-04T04:29:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"61775f9d-27f0-4b6a-8939-f2a3a1d350e9","html_url":"https://github.com/rust-lang-cn/edition-guide-cn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rust-lang-cn/edition-guide-cn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang-cn%2Fedition-guide-cn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang-cn%2Fedition-guide-cn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang-cn%2Fedition-guide-cn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang-cn%2Fedition-guide-cn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-lang-cn","download_url":"https://codeload.github.com/rust-lang-cn/edition-guide-cn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang-cn%2Fedition-guide-cn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266237002,"owners_count":23897309,"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":["book","rust","rust-lang-cn"],"created_at":"2024-11-11T17:30:32.701Z","updated_at":"2025-07-21T04:08:45.075Z","avatar_url":"https://github.com/rust-lang-cn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust 版本指南\n\n![Build Status](https://github.com/rust-lang-cn/edition-guide-cn/workflows/CI/badge.svg)\n[![LICENSE-MIT](https://img.shields.io/badge/license-MIT-green)](https://raw.githubusercontent.com/rust-lang-cn/edition-guide-cn/master/LICENSE-MIT)\n[![LICENSE-APACHE](https://img.shields.io/badge/license-Apache%202-blue)](https://raw.githubusercontent.com/rust-lang-cn/edition-guide-cn/master/LICENSE-APACHE)\n[![GitHub last commit](https://img.shields.io/github/last-commit/rust-lang-cn/edition-guide-cn?color=gold)](https://github.com/rust-lang-cn/edition-guide-cn/commits/master)\n[![GitHub contributors](https://img.shields.io/github/contributors/rust-lang-cn/edition-guide-cn?color=pink)](https://github.com/rust-lang-cn/edition-guide-cn/graphs/contributors)\n![Locatized 100%](https://img.shields.io/badge/localized-100%25-purple)\n[![rustwiki.org](https://img.shields.io/website?up_message=rustwiki.org\u0026url=https%3A%2F%2Frustwiki.org)](https://rustwiki.org)\n\n\u003e The Chinese Translation of [The Rust Edition Guide](https://github.com/rust-lang/edition-guide)\n\u003e\n\u003e - 本文档按照 [**Rust 文档翻译指引**](https://rustwiki.org/zh-CN/rust-wiki/translate/rust-translation-guide.html)规范进行翻译。\n\u003e - 首次于 2018-08-22 翻译完全部内容，欢迎纠正——最后更新时间 2019-05-05。\n\u003e - 注意：**此文档已较长时间没更新，内容可能比英文滞后较多**。期待您加入 [Rust 中文翻译项目组](https://github.com/rust-lang-cn)，协助我们，一起更新完善中文版，感激不尽！\n\n本书解释了 Rust “版本”（“edition”）的概念，即 Rust 开发中的全新的大代号。你可以在线[阅读本书中文版](https://rustwiki.org/zh-CN/edition-guide/)（[阅读英文版本](https://doc.rust-lang.org/nightly/edition-guide/)）。\n\n[Rust]: https://www.rust-lang.org/\n\n## 授权协议\n\n本版本指南使用  `MIT`/`Apache2` 进行双重许可授权，就像 Rust 本身一样。请参阅此本仓库的的 `LICENSE-*` 文件了解更多信息。\n\n## 在本地构建\n\n你也可以自己构建本书并在本地阅读。\n\n### 要求\n\n构建本书需要 [mdBook]。执行下面命令进行安装:\n\n[mdBook]: https://github.com/azerupi/mdBook\n\n```bash\n$ cargo install mdbook\n```\n\n### 构建\n\n执行下面命令进行构建：\n\n```bash\n$ mdbook build\n```\n\n输出内容将在 `book` 子目录中，可使用浏览器中打开查看内容。\n\n_Firefox:_\n\n```shell\n$ firefox book/index.html                       # Linux\n$ open -a \"Firefox\" book/index.html             # OS X\n$ Start-Process \"firefox.exe\" .\\book\\index.html # Windows (PowerShell)\n$ start firefox.exe .\\book\\index.html           # Windows (Cmd)\n```\n\n_Chrome:_\n\n```shell\n$ google-chrome book/index.html                 # Linux\n$ open -a \"Google Chrome\" book/index.html       # OS X\n$ Start-Process \"chrome.exe\" .\\book\\index.html  # Windows (PowerShell)\n$ start chrome.exe .\\book\\index.html            # Windows (Cmd)\n```\n\n运行测试：\n\n```bash\n$ mdbook test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang-cn%2Fedition-guide-cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-lang-cn%2Fedition-guide-cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang-cn%2Fedition-guide-cn/lists"}