3 ms·
> most rust projects will need it. If you mean "writing unsafe in your codebase yourself," this isn't borne out by the numbers. If you mean "depending on unsa
by steveklabnik 4y ago
> most rust projects will need it.
If you mean "writing unsafe in your codebase yourself," this isn't borne out by the numbers.
If you mean "depending on unsafe somewhere in your dependencies" then 100% of Rust code needs unsafe, just like any other language. Interacting with hardware, many operating systems' APIs, these aren't created in a way to guarantee it, and you need to interact with them to do anything.
- bluGill 4y agoI'm biased here because I work in embedded where I can't see any way to write code that directly interacts with hardware without unsafe. There are other world out there that I don't know much about.