3 ms·
I’ll propose that ALL Rust projects that do useful work depend on unsafe code. If one claims otherwise, I say they have no understanding of Rust. But also, if
by GolDDranks 2y ago
I’ll propose that ALL Rust projects that do useful work depend on unsafe code.
If one claims otherwise, I say they have no understanding of Rust. But also, if one helds that against Rust's value promise, I, again, say that they have no understanding of Rust.
- I_AM_A_SMURF 2y agoIt's definitely all of them. Even HashMap uses unsafe.
- steveklabnik 2y agoIt’s more fundamental than that: the Rust language does not encode hardware specifics into the language, and so way deep down there, you have to write down bytes to an address that Rust considers arbitrary. Unless you only want to run programs that accept no input and take no output, which is not exactly a useful subset of programs.
- Dylan16807 2y agoI get the impression they're only counting code outside the standard library, in which case tons of useful programs are fully safe.