3 ms·
Calling unsafe libraries isn't the same thing as having unsafe language features.
by username90 5y ago
Calling unsafe libraries isn't the same thing as having unsafe language features.
- alpaca128 5y agoCalling unsafe libraries automatically makes the calling code unsafe by definition. You cannot have a 100% safe language that also interacts with its (unsafe) environment in any way. The language needs a way to express the lack of safety of an external library in order to clearly isolate it from the safe code sections. In Rust that's the unsafe block.
- pdimitar 5y ago`cargo-geiger` provides nice detailed output. I found it eye-opening and it made me more conscious what dependencies to use.