It takes two lines in your Cargo.toml to turn overflows into panics in release mode in rust, if you don't mind the performance hit.
Or more sensibly you can set clippy lints to disallow any operation that may overflow, forcing you to specify the desired behavior (either with the .{wrapping,checking,saturating}_{sub,add,mul,div} functions or the Saturating<Type> etc wrappers)