MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1xzf0xp/java4shell_is_a_reason_to_use_java/19stw0dly6jk0/?context=3
r/programming • u/bowbahdoe • 12d ago
58 comments sorted by
View all comments
Show parent comment
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 4d 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_ 4d ago RUSTFLAGS="-F unsafe-code" cargo build 1 u/_choam_ 4d ago No wait, it doesn't. You can use cargo-geiger though which does actually do it
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_ 4d ago RUSTFLAGS="-F unsafe-code" cargo build 1 u/_choam_ 4d ago No wait, it doesn't. You can use cargo-geiger though which does actually do it
RUSTFLAGS="-F unsafe-code" cargo build
1 u/_choam_ 4d ago No wait, it doesn't. You can use cargo-geiger though which does actually do it
No wait, it doesn't. You can use cargo-geiger though which does actually do it
View all comments
Show parent comment
4
u/_choam_ 12d ago
You also can block unsafe in your own code and dependencies (not sure about the stdlib and compiler builtins though)