Skip to content

Commit b63c455

Browse files
dirkbehmeojeda
authored andcommitted
docs: rust: no_std is used
Using the #![no_std] attribute in the Rust kernel support is different to the default Rust usage. Mention this in the Documentation. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Reviewed-by: Trevor Gross <tmgross@umich.edu> Link: https://lore.kernel.org/r/20240610122332.3858571-1-dirk.behme@de.bosch.com [ Avoided breaking links in two lines. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ab44079 commit b63c455

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/rust/general-information.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ This document contains useful information to know when working with
77
the Rust support in the kernel.
88

99

10+
``no_std``
11+
----------
12+
13+
The Rust support in the kernel can link only `core <https://doc.rust-lang.org/core/>`_,
14+
but not `std <https://doc.rust-lang.org/std/>`_. Crates for use in the
15+
kernel must opt into this behavior using the ``#![no_std]`` attribute.
16+
17+
1018
Code documentation
1119
------------------
1220

0 commit comments

Comments
 (0)