cliffle,
@cliffle@hachyderm.io avatar

Robust Rust tip too short for a blog post:

Turn on overflow checks in your release builds. I do this in even the smallest embedded applications (16 kiB of flash or less). It doesn't hurt performance as much as you might expect, and has caught many legitimate bugs that would otherwise have stayed hidden.

This is particularly important if you never build in debug mode for space or performance reasons. (Overflow checks are not why debug mode is slow!)

https://doc.rust-lang.org/cargo/reference/profiles.html#overflow-checks

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • Leos
  • provamag3
  • cisconetworking
  • megavids
  • lostlight
  • All magazines