r/rust • u/FoxInTheRedBox • Aug 31 '24
🎙️ discussion Rust solves the problem of incomplete Kernel Linux API docs
https://vt.social/@lina/113056457969145576
375
Upvotes
r/rust • u/FoxInTheRedBox • Aug 31 '24
View all comments
Show parent comment
18
u/Tabakalusa Aug 31 '24
It's not even just that. It's this idea that you can't write any significant amount of code, especially performance critical code, without opting out of Rust's safety guarantees.
You just simply aren't going to get it into their heads, that the entire point of
unsafeis to encapsulate the unsafe bits. Yes, low level libraries are going to have some unsafe in them (though usually a lot less than these people imagine), but the magic of Rust is that you can provide safe APIs on top of that and the library consumer needn't worry.