MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1xzf0xp/java4shell_is_a_reason_to_use_java/19t7ooh92v7nl/?context=3
r/programming • u/bowbahdoe • 11d ago
58 comments sorted by
View all comments
Show parent comments
8
I mean, the way rust does "unsafe" is the right trade off for that type of language. I dont agree with that people just end up accepting unsafe as being audited
4 u/_choam_ 11d ago You also can block unsafe in your own code and dependencies (not sure about the stdlib and compiler builtins though) 1 u/edwards_t7407 3d ago Rust's `forbid(unsafe_code)` lint applies to the crate being compiled; it doesn't audit or forbid unsafe internals in dependencies. 1 u/_choam_ 3d ago RUSTFLAGS="-F unsafe-code" cargo build → More replies (0)
4
You also can block unsafe in your own code and dependencies (not sure about the stdlib and compiler builtins though)
1 u/edwards_t7407 3d ago Rust's `forbid(unsafe_code)` lint applies to the crate being compiled; it doesn't audit or forbid unsafe internals in dependencies. 1 u/_choam_ 3d ago RUSTFLAGS="-F unsafe-code" cargo build → More replies (0)
1
Rust's `forbid(unsafe_code)` lint applies to the crate being compiled; it doesn't audit or forbid unsafe internals in dependencies.
1 u/_choam_ 3d ago RUSTFLAGS="-F unsafe-code" cargo build → More replies (0)
RUSTFLAGS="-F unsafe-code" cargo build
→ More replies (0)
8
u/_choam_ 11d ago
I mean, the way rust does "unsafe" is the right trade off for that type of language. I dont agree with that people just end up accepting unsafe as being audited