Description
Now that backtraces API is stabilized since Rust 1.65.0 (2022-11-03), I would like to raise the idea of removing the feature-gating of backtraces. Backtraces are very helpful in debugging contract errors, but unfortunately the fact that they are currently feature-gated means that most packages that depend on cosmwasm-std
do not support them and construct StdError
s without the backtrace
field (one example here), which means that if you try to depend on such a package and enable the backtraces feature, compilation will fail since dependencies share features. If we remove the feature-gating then all packages depending on cosmwasm-std
will require to add backtraces when constructing StdError
s, so this would be a breaking change. Something to consider for the next major version.