News for hackers. Stuff that matters.
Re:Testing the memory safe Rust implementation of Sudo/Su by steveklabnik on Wednesday June 28, 2023 @02:36PM (#36510623)
You can pretty trivially turn on overflow checks yet compile with all of the other release options as normal. It's one line in cargo.toml or one flag to rustc.
Re:Testing the memory safe Rust implementation of Sudo/Su by nullc on Wednesday June 28, 2023 @02:46PM (#36510758)
What is the one line? (I shall benchmark!)
Re:Testing the memory safe Rust implementation of Sudo/Su by steveklabnik on Wednesday June 28, 2023 @02:58PM (#36510929)
iirc it's `-C overflow-checks=y` to rustc or

  [profile.release]
  overflow-checks = false
in cargo.toml.

I would probably use the flags with RUSTFLAGS to make sure that it goes to all dependencies and not just the crate you're building, if what you're building has dependencies.

Re:Testing the memory safe Rust implementation of Sudo/Su by nullc on Wednesday June 28, 2023 @05:04PM (#36512576)
Thanks!
Re:Testing the memory safe Rust implementation of Sudo/Su by steveklabnik on Thursday June 29, 2023 @11:33PM (#36530214)
… I just realized that second should have been true not false. Lol. Hope I didn’t lead you astray.