From: Igor Korotin <igor.korotin@yahoo.com>
To: Miguel Ojeda <ojeda@kernel.org>, Alex Gaynor <alex.gaynor@gmail.com>
Cc: "Benno Lossin" <benno.lossin@proton.me>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>,
rust-for-linux@vger.kernel.org,
"Igor Korotin" <igor.korotin@yahoo.com>
Subject: [PATCH] docs: rust: quick-start: update Ubuntu instructions
Date: Mon, 31 Mar 2025 18:01:18 +0100 [thread overview]
Message-ID: <20250331170118.1376899-1-igor.korotin@yahoo.com> (raw)
In-Reply-To: <D8S8C5W0FCVD.1LH1E86H6PXZD@proton.me>
Ubuntu’s rust-1.80 packages don't install tools by default, so the
PATH must include /usr/lib/rust-1.80/bin. Also, bindgen-0.65 needs
update-alternatives to set it as the default.
Signed-off-by: Igor Korotin <igor.korotin@yahoo.com>
---
Documentation/rust/quick-start.rst | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst
index 4aa50e5fcb8c..2846fd873680 100644
--- a/Documentation/rust/quick-start.rst
+++ b/Documentation/rust/quick-start.rst
@@ -95,6 +95,16 @@ they should generally work out of the box, e.g.::
apt install rustc-1.80 rust-1.80-src bindgen-0.65 rustfmt-1.80 rust-1.80-clippy
+By default bindgen-0.65 deb package does not set itself as default. It should be
+installed as an alternative:
+
+ update-alternatives --install /usr/bin/bindgen bindgen /usr/bin/bindgen-0.65 100
+ update-alternatives --set bindgen /usr/bin/bindgen-0.65
+
+``PATH`` needs to be set when installing rust with apt, e.g.::
+
+ PATH=/usr/lib/rust-1.80/bin:$PATH
+
``RUST_LIB_SRC`` needs to be set when using the versioned packages, e.g.::
RUST_LIB_SRC=/usr/src/rustc-$(rustc-1.80 --version | cut -d' ' -f2)/library
--
2.43.0
next prev parent reply other threads:[~2025-03-31 17:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-28 0:49 [PATCH] rust: macros: Fix macro referencing core and kernel crates Benno Lossin
2025-03-28 18:03 ` [PATCH v2 0/1] rust: macros: Fix macro referencing core and kernel crates v2 Igor Korotin
2025-03-28 18:03 ` [PATCH v2 1/1] " Igor Korotin
2025-03-28 21:50 ` Benno Lossin
2025-03-31 9:47 ` [PATCH v3] rust: macros: Fix macro referencing core and kernel crates Igor Korotin
2025-03-31 10:55 ` Miguel Ojeda
2025-03-31 10:24 ` [PATCH] " Igor Korotin
2025-03-31 17:01 ` Igor Korotin [this message]
2025-03-31 18:30 ` [PATCH] docs: rust: quick-start: update Ubuntu instructions Miguel Ojeda
[not found] ` <44928637.255825.1743501279791@mail.yahoo.com>
2025-04-01 11:26 ` Miguel Ojeda
2025-04-01 13:38 ` Igor Korotin
2025-04-01 14:07 ` Miguel Ojeda
2025-03-31 19:11 ` Benno Lossin
2025-03-29 12:28 ` [PATCH v2 1/1] rust: macros: Fix macro referencing core and kernel crates v2 Miguel Ojeda
2025-03-28 21:48 ` [PATCH v2 0/1] " Benno Lossin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250331170118.1376899-1-igor.korotin@yahoo.com \
--to=igor.korotin@yahoo.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=gary@garyguo.net \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.