]> www.infradead.org Git - users/jedix/linux-maple.git/commit
docs: rust: include other expressions in conditional compilation section
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 2 Sep 2024 16:55:33 +0000 (18:55 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 5 Sep 2024 20:45:01 +0000 (22:45 +0200)
commit93dc3be19450447a3a7090bd1dfb9f3daac3e8d2
treef926ebe3de38d83bf41af43633b2ac0d65fc2319
parentaeb0e24abbebebff3b5ac65486c933d0ecd5cf81
docs: rust: include other expressions in conditional compilation section

Expand the conditional compilation section to explain how to support
other expressions, such as testing whether `RUSTC_VERSION` is at least
a given version, which requires a numerical comparison that Rust's `cfg`
predicates do not support (yet?).

Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20240902165535.1101978-7-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Documentation/rust/general-information.rst