book

The Rust Programming Language

Github星跟蹤圖

The Rust Programming Language

Build Status

This repository contains the source of "The Rust Programming Language" book.

The book is available in dead-tree form from No Starch Press.

You can also read the book for free online. Please see the book as shipped with
the latest stable, beta, or nightly Rust releases. Be aware that issues
in those versions may have been fixed in this repository already, as those
releases are updated less frequently.

See the releases to download just the code of all the code listings that appear in the book.

Requirements

Building the book requires mdBook, ideally the same 0.3.x version that
rust-lang/rust uses in this file. To get it:

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

Building

To build the book, type:

$ mdbook build

The output will be in the book subdirectory. To check it out, open it in
your web browser.

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)

To run the tests:

$ mdbook test

Contributing

We'd love your help! Please see CONTRIBUTING.md to learn about the
kinds of contributions we're looking for.

Translations

We'd love help translating the book! See the Translations label to join in
efforts that are currently in progress. Open a new issue to start working on
a new language! We're waiting on mdbook support for multiple languages
before we merge any in, but feel free to start!

Spellchecking

To scan source files for spelling errors, you can use the spellcheck.sh
script. It needs a dictionary of valid words, which is provided in
dictionary.txt. If the script produces a false positive (say, you used word
BTreeMap which the script considers invalid), you need to add this word to
dictionary.txt (keep the sorted order for consistency).

主要指標

概覽
名稱與所有者rust-lang/book
主編程語言Rust
編程語言Shell (語言數: 6)
平台
許可證Other
所有者活动
創建於2015-12-11 22:49:49
推送於2025-04-08 18:24:27
最后一次提交
發布數7
最新版本名稱async-2024 (發布於 )
第一版名稱nostarch-first-printing (發布於 )
用户参与
星數16k
關注者數224
派生數3.6k
提交數6.1k
已啟用問題?
問題數1961
打開的問題數164
拉請求數1403
打開的拉請求數35
關閉的拉請求數932
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?