RUST_BACKTRACE in production use

A few of my projects have env::set_var("RUST_BACKTRACE", "1") at entry points specifically to have backtraces in output always. Often errors aren’t easily reproducible so the backtrace is very nice. I’ve thought about suggesting that the compiler could have an option to unconditionally enable backtraces for programs at compile time.

2 Likes