Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

book

> 编程语言
Open source

The Rust Programming Language

18.1K stars0 likes2 views
WebsiteGitHub

About

The Rust Programming Language

The Rust Programming Language

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 version that rust-lang/rust uses in this file. To get it:

bash
$ cargo install mdbook --locked --version <version_num>

Building

To build the book, type:

bash
$ mdbook build

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

Firefox:

bash
$ 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:

bash
$ 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:

bash
$ cd packages/trpl
$ mdbook test --library-path packages/trpl/target/debug/deps

Contributing

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

Because the book is printed, and because we want to keep the online version of the book close to the print version when possible, it may take longer than you're used to for us to address your issue or pull request.

So far, we've been doing a larger revision to coincide with Rust Editions. Between those larger revisions, we will only be correcting errors. If your issue or pull request isn't strictly fixing an error, it might sit until the next time that we're working on a large revision: expect on the order of months or years. Thank you for your patience!

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 available in the ci directory. It needs a dictionary of valid words, which is provided in ci/dictionary.txt. If the script produces a false positive (say, you used the word BTreeMap which the script considers invalid), you need to add this word to ci/dictionary.txt (keep the sorted order for consistency).

Issues· 448 open

View all issuesOpen on GitHub
  • #4847

    compile-time intermediate code and things before 1.0 compiler

    Updated Oct 1, 2026
  • #4845

    Improve peak_detector: Improve peak detection accuracy

    Updated Sep 27, 2026
  • #4844

    Improve signal_rms: Optimize RMS calculation

    Updated Sep 27, 2026
  • #4843

    Improve signal_variance: Add variance docs and tests

    Updated Sep 27, 2026
  • #4842

    Improve mean_absolute_deviation: Improve MAD robustness

    Updated Sep 27, 2026
  • #4841

    Improve signal_quality: Refactor signal quality module

    Updated Sep 27, 2026
  • #4840

    Improve peak_detector: Improve peak detection accuracy

    Updated Sep 27, 2026
  • #4839

    Improve signal_rms: Optimize RMS calculation

    Updated Sep 27, 2026
  • #4838

    Improve signal_variance: Add variance docs and tests

    Updated Sep 27, 2026
  • #4837

    Improve mean_absolute_deviation: Improve MAD robustness

    Updated Sep 27, 2026

> Tags

Rustbookmdbookrustrust-programming-language

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言