@@ -23,13 +23,13 @@ at the time of writing, they are likely to not be recent enough.
2323rustc
2424*****
2525
26- A recent * nightly * Rust toolchain (with, at least, `` rustc ``) is required,
27- e.g. `` nightly-2021-05-29 ``. Our goal is to use a stable toolchain as soon
28- as possible, but for the moment we depend on a handful of nightly features.
26+ A particular version (` 1.54.0-beta.1 `) of the Rust compiler is required.
27+ Newer versions may or may not work because, for the moment, we depend on
28+ some unstable Rust features.
2929
3030If you are using ``rustup ``, run::
3131
32- rustup default nightly -2021-05-29
32+ rustup default beta -2021-06-23
3333
3434Otherwise, fetch a standalone installer or install ``rustup `` from:
3535
@@ -125,16 +125,30 @@ the component manually::
125125The standalone installers also come with ``clippy ``.
126126
127127
128+ cargo
129+ *****
130+
131+ ``cargo `` is the Rust native build system. It is currently required to run
132+ the tests (``rusttest `` target) since we use it to build a custom standard
133+ library that contains the facilities provided by our custom ``alloc ``.
134+
135+ If you are using ``rustup ``, all the profiles already install the tool,
136+ so you should be good to go. The standalone installers also include ``cargo ``.
137+
138+
128139rustdoc
129140*******
130141
131- If you install the ``rustdoc `` tool, then you will be able to generate pretty
132- HTML documentation for Rust code, including for the libraries (crates) inside
133- ``rust/ `` that are used by the rest of the kernel (for details, please see
134- :ref: `Documentation/rust/docs.rst <rust_docs >`).
142+ ``rustdoc `` is the documentation tool for Rust. It generates pretty HTML
143+ documentation for Rust code (for details, please see
144+ :ref: `Documentation/rust/docs.rst <rust_docs >`.
145+
146+ ``rustdoc `` is also able to test the examples provided in documented Rust code
147+ (called doctests or documentation tests). We use this feature, thus ``rustdoc ``
148+ is required to run the tests (``rusttest `` target).
135149
136150If you are using ``rustup ``, all the profiles already install the tool,
137- so you should be good to go. The standalone installers also come with ``rustdoc ``.
151+ so you should be good to go. The standalone installers also include ``rustdoc ``.
138152
139153
140154rust-analyzer
0 commit comments