4 ms·
> Safe rust can still use crates with unsafe rust Every language ecosystem that I have used has a good subset of its popular libraries implemented in memory-un
by tetromino_ 4y ago
> Safe rust can still use crates with unsafe rust
Every language ecosystem that I have used has a good subset of its popular libraries implemented in memory-unsafe languages (usually C or C++), and the use of these libraries is typically unavoidable if you need high performance or to interact with the OS. Which is to say, most large projects in GC languages end up pulling in memory-unsafe dependencies.
Rust's advantage is that at least your dependencies are not 100% unsafe code, but have unsafe parts limited to small, easily auditable blocks.