Skip to content

rust-lang-cn/edition-guide-cn

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rust 版本指南

Build Status LICENSE-MIT LICENSE-APACHE GitHub last commit GitHub contributors Locatized 100% rustwiki.org

The Chinese Translation of The Rust Edition Guide

  • 本文档按照 Rust 文档翻译指引规范进行翻译。
  • 首次于 2018-08-22 翻译完全部内容,欢迎纠正——最后更新时间 2019-05-05。
  • 注意:此文档已较长时间没更新,内容可能比英文滞后较多。期待您加入 Rust 中文翻译项目组,协助我们,一起更新完善中文版,感激不尽!

本书解释了 Rust “版本”(“edition”)的概念,即 Rust 开发中的全新的大代号。你可以在线阅读本书中文版阅读英文版本)。

授权协议

本版本指南使用 MIT/Apache2 进行双重许可授权,就像 Rust 本身一样。请参阅此本仓库的的 LICENSE-* 文件了解更多信息。

在本地构建

你也可以自己构建本书并在本地阅读。

要求

构建本书需要 mdBook。执行下面命令进行安装:

$ cargo install mdbook

构建

执行下面命令进行构建:

$ mdbook build

输出内容将在 book 子目录中,可使用浏览器中打开查看内容。

Firefox:

$ firefox book/index.html                       # Linux
$ open -a "Firefox" book/index.html             # OS X
$ Start-Process "firefox.exe" .\book\index.html # Windows (PowerShell)
$ start firefox.exe .\book\index.html           # Windows (Cmd)

Chrome:

$ google-chrome book/index.html                 # Linux
$ open -a "Google Chrome" book/index.html       # OS X
$ Start-Process "chrome.exe" .\book\index.html  # Windows (PowerShell)
$ start chrome.exe .\book\index.html            # Windows (Cmd)

运行测试:

$ mdbook test

About

Rust 版本指南(Rust Edition Guide 中文版)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published