Rust 程序设计语言(2021 edition 施工中)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
KaiserY 19e97f6c36
check to ch14-05
6 years ago
src check to ch14-05 6 years ago
theme init travis ci support 7 years ago
.gitignore ignore book/ dir 6 years ago
.travis.yml ferris technology 6 years ago
LICENSE Update LICENSE 6 years ago
README.md Update README.md 6 years ago
book.json check to ch19-02 7 years ago
book.toml ferris technology 6 years ago
ferris.css ferris technology 6 years ago
ferris.js ferris technology 6 years ago
vuepress_page.png Vuepress构建静态页面效果截图 6 years ago

README.md

Rust 程序设计语言(第二版) 简体中文版

Build Status

状态

目前正向 2018 edtion 过渡,目前官方仓库状已经不再分版本提供源码了,故本仓库准备与官方保持一致。

PS:

  • 对照源码位置:https://github.com/rust-lang/book/tree/master/src
  • 官方仓库用于阅读的网页仍是之前的版本,与新版区别不大,最大的区别在于 2018 edtion 对模块功能做出较大修改,第七章基本重写。
  • 每章翻译开头都带有官方链接和 commit hash若发现与官方不一致欢迎 Issue 或 PR :)

静态页面构建与文档撰写

image

构建

你可以将本mdbook构建成一系列静态html页面。这里我们采用vuepress打包出静态网页。在这之前,你需要安装Nodejs

全局安装vuepress

npm i -g vuepress 

cd到项目目录然后开始构建。构建好的静态文档会出现在"./src/.vuepress/dist"中

vuepress build ./src

文档撰写

vuepress会启动一个本地服务器并在浏览器对你保存的文档进行实时热更新。

vuepress dev ./src

社区资源

GitBook

本翻译主要采用 mdBook 格式。同时支持 GitBook,但会缺失部分功能,如一些代码没有语法高亮。

本翻译加速查看站点上海站点http://rustdoc.saigao.fun

GitBook.com 地址:https://legacy.gitbook.com/book/kaisery/trpl-zh-cn/details