Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ incremental = false
[profile.release]
opt-level = 3
lto = "fat"
strip = true
strip = "debuginfo"
panic = "abort"
codegen-units = 1

Expand Down
5 changes: 5 additions & 0 deletions crates/cli/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ impl EyreHandler for Handler {
///
/// Panics are always caught by the more debug-centric handler.
pub fn install() {
// If the user has not explicitly overridden "RUST_BACKTRACE", then produce full backtraces.
if std::env::var_os("RUST_BACKTRACE").is_none() {
std::env::set_var("RUST_BACKTRACE", "full");
}

let debug_enabled = std::env::var("FOUNDRY_DEBUG").is_ok();
if debug_enabled {
if let Err(e) = color_eyre::install() {
Expand Down