> > any nontrivial project will make use of unsafe blocks.
I don't think that's actually true? Most projects make use of no unsafe outside of stdlib and a handful of crates.io crates.
I don't think that's actually true? Most projects make use of no unsafe outside of stdlib and a handful of crates.io crates.
edit: This is not counting FFI though.
The power of Rust is the ability to wrap dangerous code into safe abstractions without cost, and unsafe blocks are essentially a flag for "this is dangerous, make sure it's contained".
(ie sure, maybe you're not writing unsafe yourself, but you'll quite possibly hit an issue where you have to dig into a crate that does)