From: Dirk Behme Date: Mon, 10 Jun 2024 12:23:32 +0000 (+0200) Subject: docs: rust: no_std is used X-Git-Tag: v6.11-rc1~12^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b63c455d38be5f62a0665f3080c67334db5b4c41;p=thirdparty%2Flinux.git 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 Reviewed-by: Trevor Gross 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 --- diff --git a/Documentation/rust/general-information.rst b/Documentation/rust/general-information.rst index 4bb6ac12d482c..e3f388ef4ee42 100644 --- a/Documentation/rust/general-information.rst +++ b/Documentation/rust/general-information.rst @@ -7,6 +7,14 @@ This document contains useful information to know when working with the Rust support in the kernel. +``no_std`` +---------- + +The Rust support in the kernel can link only `core `_, +but not `std `_. Crates for use in the +kernel must opt into this behavior using the ``#![no_std]`` attribute. + + Code documentation ------------------