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 <[email protected]> Reviewed-by: Trevor Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Avoided breaking links in two lines. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
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)