GEN-115: Way to disable error location and/or backtrace #3353
Labels
area/libs > error-stack
Affects the `error-stack` crate (library)
area/libs
Relates to first-party libraries/crates/packages (area)
category/enhancement
New feature or request
hint/help wanted
Experience: Extra attention is needed
lang/rust
Pull requests that update Rust code
priority/3 low
Lower priority: nice-to-have
Related Problem
No response
Proposed Solution
It'd be nice to have a cargo feature available to disable location capturing/printing. Example:
For end users, the
at rmz/src/main.rs:52:17
is just noise so ideally I'd be able to keep that stuff on in debug mode and feature flag it off in release mode.Similarly, it'd be nice to completely compile out backtrace support if the
backtrace
feature isn't enabled in the stdlib: https://doc.rust-lang.org/cargo/reference/unstable.html#build-std-featuresAlternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: