Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: rust: quick-start: update Ubuntu versioned packages

Now that the minimum supported Rust version is bumped, bump the versioned
Rust packages [1][2][3][4] to that version for Ubuntu in the Quick
Start guide.

In addition, add "may" to the `RUST_LIB_SRC` line since it does not look
like it is needed from a quick test in a Ubuntu 24.04 LTS container.

Link: https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=rustc [1]
Link: https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=bindgen [2]
Link: https://launchpad.net/ubuntu/+source/rustc-1.85 [3]
Link: https://launchpad.net/ubuntu/+source/rust-bindgen-0.71 [4]
Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Link: https://patch.msgid.link/20260405235309.418950-24-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+14 -14
+14 -14
Documentation/rust/quick-start.rst
··· 112 112 releases, they require some additional configuration to be set, using 113 113 the versioned packages, e.g.:: 114 114 115 - apt install rustc-1.80 rust-1.80-src bindgen-0.65 rustfmt-1.80 \ 116 - rust-1.80-clippy 117 - ln -s /usr/lib/rust-1.80/bin/rustfmt /usr/bin/rustfmt-1.80 118 - ln -s /usr/lib/rust-1.80/bin/clippy-driver /usr/bin/clippy-driver-1.80 115 + apt install rustc-1.85 rust-1.85-src bindgen-0.71 rustfmt-1.85 \ 116 + rust-1.85-clippy 117 + ln -s /usr/lib/rust-1.85/bin/rustfmt /usr/bin/rustfmt-1.85 118 + ln -s /usr/lib/rust-1.85/bin/clippy-driver /usr/bin/clippy-driver-1.85 119 119 120 120 None of these packages set their tools as defaults; therefore they should be 121 121 specified explicitly, e.g.:: 122 122 123 - make LLVM=1 RUSTC=rustc-1.80 RUSTDOC=rustdoc-1.80 RUSTFMT=rustfmt-1.80 \ 124 - CLIPPY_DRIVER=clippy-driver-1.80 BINDGEN=bindgen-0.65 123 + make LLVM=1 RUSTC=rustc-1.85 RUSTDOC=rustdoc-1.85 RUSTFMT=rustfmt-1.85 \ 124 + CLIPPY_DRIVER=clippy-driver-1.85 BINDGEN=bindgen-0.71 125 125 126 - Alternatively, modify the ``PATH`` variable to place the Rust 1.80 binaries 126 + Alternatively, modify the ``PATH`` variable to place the Rust 1.85 binaries 127 127 first and set ``bindgen`` as the default, e.g.:: 128 128 129 - PATH=/usr/lib/rust-1.80/bin:$PATH 129 + PATH=/usr/lib/rust-1.85/bin:$PATH 130 130 update-alternatives --install /usr/bin/bindgen bindgen \ 131 - /usr/bin/bindgen-0.65 100 132 - update-alternatives --set bindgen /usr/bin/bindgen-0.65 131 + /usr/bin/bindgen-0.71 100 132 + update-alternatives --set bindgen /usr/bin/bindgen-0.71 133 133 134 - ``RUST_LIB_SRC`` needs to be set when using the versioned packages, e.g.:: 134 + ``RUST_LIB_SRC`` may need to be set when using the versioned packages, e.g.:: 135 135 136 - RUST_LIB_SRC=/usr/src/rustc-$(rustc-1.80 --version | cut -d' ' -f2)/library 136 + RUST_LIB_SRC=/usr/src/rustc-$(rustc-1.85 --version | cut -d' ' -f2)/library 137 137 138 138 For convenience, ``RUST_LIB_SRC`` can be exported to the global environment. 139 139 140 - In addition, ``bindgen-0.65`` is available in newer releases (24.04 LTS and 141 - 24.10), but it may not be available in older ones (20.04 LTS and 22.04 LTS), 140 + In addition, ``bindgen-0.71`` is available in newer releases (24.04 LTS), 141 + but it may not be available in older ones (20.04 LTS and 22.04 LTS), 142 142 thus ``bindgen`` may need to be built manually (please see below). 143 143 144 144