Linus Torvalds on Rust support in kernel
In the embedded Rust world it is common to explicitly define a custom global allocator and panic handler. The global allocator is even optional although you then won&#x27;t be able to use heap allocated structs like String and Vec. Therefore the Rust compiler does not force you to use the built in allocator or panic handler and you are free to implement them how you choose.<p>See for alloc: <a href="https:&#x2F;&#x2F;docs.rust-embedded.org&#x2F;book&#x2F;collections&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;docs.rust-embedded.org&#x2F;book&#x2F;collections&#x2F;index.html</a>
See for panicking: <a href="https:&#x2F;&#x2F;docs.rust-embedded.org&#x2F;book&#x2F;start&#x2F;panicking.html" rel="nofollow">https:&#x2F;&#x2F;docs.rust-embedded.org&#x2F;book&#x2F;start&#x2F;panicking.html</a>