Giter Site home page Giter Site logo

dumpmemory / book-cn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rust-lang-cn/book-cn

0.0 0.0 0.0 12.26 MB

Rust 程序设计语言——Chinese translation of The Rust Programming Language (Book)

Home Page: https://rustwiki.org/zh-CN/book

License: Apache License 2.0

Shell 1.70% Rust 92.53% HTML 3.31% CSS 0.27% JavaScript 0.77% XSLT 1.43%

book-cn's Introduction

Rust 程序设计语言

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

Chinese translation of The Rust Programming Language

  • 鉴于目前网上的中文版已经滞后英文内容,所以重新开启本书翻译,跟进原书,本书是 Rust 中文翻译项目组的重点翻译项目。
  • 本文档已 100% 翻译成中文,最后更新时间为 2022-02-06。
  • 本仓库翻译内容包括 Rust 中文翻译项目组本身原有的翻译以及采用网上已有的开源的翻译版本(如:KaiserY/trpl-zh-cn 译本),我们尽可能避免不必要的重复劳动,我们对原译者感激不尽!

本仓库包含《Rust 程序设计语言》图书的源码。

可以从 No Starch 出版社购买本书的英文纸质图书

中文译版注:

  1. 中文出版书名为《Rust 权威指南》,可以在线上或线下购书平台购买。
  2. 出版的版本翻译独立于本仓库翻译。

在线版可以在本组织官网上阅读中文版支持同一页面中英双语切换)或在 Rust 官网上阅读英文版。另外在 Rust 官网的英文版在线阅读可以选择 stablebetanightly 三个不同的分支版本,这几个分支版本可能滞后于英文仓库的最新内容。

依赖

构建本书需要 mdBook,最好使用的版本和 rust-lang/rust这个文件中指定的版本一致。执行以下命令安装:

$ cargo install mdbook --vers [version-num]

构建

构建此书,请输入:

$ 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

参与贡献

您的帮助,我们将感激不尽(We'd love your help)!请参见 CONTRIBUTING.md(英文原项目参与贡献指引 CONTRIBUTING-EN.md)。

翻译

我们很乐意翻译这本书!请参阅“翻译”标签(在英文原仓库)以加入当前正在进行的工作。新建一个 Issue,开始使用新语言!在我们合并任何内容之前,我们正在等待 mdbook 对多种语言的支持,只要支持后将随时可以开始!

拼写检查

要扫描源文件是否存在拼写错误,可以使用 ci 目录中的脚本 spellcheck.sh。这需要一个带有有效单词的字典文件,由 ci/dictionary.txt 提供。如果脚本产生误报(例如,使用了词语 BTreeMap 被脚本认为无效),则需要在 ci/dictionary.txt 中添加该单词(保持排序顺序以确保一致性)。

授权协议

《Rust 程序设计语言》(中文版与英文版 The Rust Programming Language 均) 使用以下两种协议的任一种进行授权:

可以根据自己选择来定。

除非您有另外说明,否则您在本仓库提交的任何贡献均按上述方式进行双重许可授权,就如 Apache 2.0 协议所规定那样,而无需附加任何其他条款或条件。

book-cn's People

Contributors

0xmohit avatar aaaxx avatar aaranxu avatar adamcdunlap avatar barbeque avatar brennx0r avatar butonly avatar carols10cents avatar clemensw avatar dependabot[bot] avatar elahn avatar focksor avatar frewsxcv avatar glatavento avatar jightuse avatar jturner314 avatar k4rtik avatar kberov avatar lalala-233 avatar lucis-fluxum avatar mandeep avatar mind1949 avatar rayray avatar spastorino avatar steveklabnik avatar traffictse avatar yangfong avatar ykomatsu avatar zajn avatar zhanghandong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.