Skip to content

Consider removing feature-gating of backtraces in 2.0 #1760

Closed
@apollo-sturdy

Description

@apollo-sturdy

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 StdErrors 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 StdErrors, so this would be a breaking change. Something to consider for the next major version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions