If in your project you need to make the resulting

binary as small as possible, you can switch from unwinding to aborting upon a

panic by adding panic = 'abort' to the appropriate [profile] sections in

your Cargo.toml file. For example, if you want to abort on panic in release

mode, add this:

[profile.release]

panic = 'abort'

Reply to this note

Please Login to reply.

Discussion

Try this when you have a stable rust program and want the executable to as small as possible.

The above note has been made in highlighter.com as a comment to some highlighted text… the highlight doesn’t show up in damus.