Conceptual
Login

Turning On Rust Support and the Rust Samples

Rust code in the kernel is compiled only when a configuration switch asks for it, and the example Rust drivers have a switch of their own. Turning both on is what makes the Rust parts of the tree actually build and appear in your kernel. If the switch is hidden or refuses to turn on, it is telling you the toolchain check has not passed. It is the moment your kernel becomes a Rust-capable kernel.

Questions this Concept answers

  • Why are Rust support and the Rust sample drivers controlled by two separate switches?