Re:An RFC that adds support for Rust to the Linux kernel
by steveklabnik on Wednesday April 14, 2021 @08:13PM
(#26814750)
If an unsafe wrapper can be mis-used, it's not actually safe, and so the bug still lies inside the wrapper.
[ Parent
| on HN ]
Re:An RFC that adds support for Rust to the Linux kernel
by CyberRabbi on Wednesday April 14, 2021 @09:30PM
(#26815210)
That’s true, so now I see where the issue of unavoidable unsafe usage comes in. It’s not always possible to create a safe and general wrapper for all driver functionality, though in special cases maybe. I agree now that using Rust still offers something even if it can’t be guaranteed that the code is 100%. Thanks for explaining.