]> www.infradead.org Git - users/hch/misc.git/commit
rust: clarify the language unstable features in use
authorMiguel Ojeda <ojeda@kernel.org>
Thu, 27 Mar 2025 21:13:02 +0000 (22:13 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 11 May 2025 22:20:25 +0000 (00:20 +0200)
commitb9b701fce49a448b1e046f7cda592fec2958e5cd
tree769c98f47f55ae840c306f6b57d3cb939ac20c2f
parent7d8dee4689278e174900509b8c4604651159d8ee
rust: clarify the language unstable features in use

We track the details of which Rust features we use at our usual "live
list" [1] (and its sub-lists), but in light of a discussion in the LWN
article [2], it would help to clarify it in the source code.

In particular, we are very close to rely only on stable Rust language-wise
-- essentially only two language features remain (including the `kernel`
crate).

Thus add some details in both the feature list of the `kernel` crate as
well as the list of allowed features.

This does not over every single feature, and there are quite a few
non-language features that we use too. To have the full picture, please
refer to [1].

Link: https://github.com/Rust-for-Linux/linux/issues/2
Link: https://lwn.net/Articles/1015409/
Suggested-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250327211302.286313-1-ojeda@kernel.org
[ Improved comments with suggestions from the list. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/lib.rs
scripts/Makefile.build