Skip to content

Switch From Snafu to thiserror #6166

@tustvold

Description

@tustvold

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Currently snafu is part of the public API of object_store. This is unfortunate as it is a pre-1.0 crate and is making breaking releases. We also make relatively limited use of its functionality, with quite a lot of use of context(false).

Describe the solution you'd like

I'd like to propose switching to using thiserror, as I think this would have some advantages:

  • It is a 1.0.0 release
  • It doesn't expose anything beyond implementing the Error trait
  • It has broader ecosystem adoption than Snafu
  • It has a potentially less steep learning curve

Describe alternatives you've considered

We could not do this.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changeloghelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions