diff --git a/Cargo.toml b/Cargo.toml index 28ebf99c1bcd..1d5514903521 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -273,8 +273,12 @@ zip = { version = "0.6", default-features = false } # Our dev profile has some optimizations turned on, as well as debug assertions. [profile.dev] -opt-level = 1 # Make debug builds run faster -panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways). +opt-level = 1 # Make debug builds run faster + +# panic = "abort" leads to better optimizations and smaller binaries (and is the default in Wasm anyways), +# but it also means backtraces don't work with the `backtrace` library (https://github.com/rust-lang/backtrace-rs/issues/397). +# egui has a feature where if you hold down all modifiers keys on your keyboard and hover any UI widget, +# you will see the backtrace to that widget, and we don't want to break that feature. [profile.dev.build-override] debug = true # enable debug symbols for build scripts when building in dev (codegen backtraces!)