Safe embedded code is state of the art
Safe embedded code is state of the art
Posted Aug 14, 2024 18:56 UTC (Wed) by mb (subscriber, #50428)Parent article: Standards for use of unsafe Rust in the kernel
>But, IMHO, we shouldn't treat Rust drivers as some unprivileged entity, they're also kernel code, after all
I would be surprised if drivers needed much unsafe code.
It is possible to write embedded Rust code for most needs without any unsafe blocks.
The unsafe blocks are hidden down in the pac and hal crates.
In the long term I would forbid unsafe code in most drivers.
