Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Separate backtrace and std features? #127

Open
@daboross

Description

@daboross

In Cargo.toml, the std feature depends on backtrace. Is there a technical reason this is required, or would it be possible to implement Fail for StdError without depending on backtrace?

We have a use case in dotenv for using failure crate with std error types as #[cause]s, but it would be ideal if we didn't pull in all of the backtrace crate.

Would it be possible to either:

  • add a new feature for impl<E: StdError + Send + Sync + 'static> Fail for E {} separate from backtrace and std
  • or have the std feature not depend on backtrace?

I'd be willing to submit a PR doing this if it's something you'd want to add, but there might be some other thing blocking it that I'm not aware of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions