Skip to content

[Feature Request] [color-eyre] Make backtrace (+dependency) optional #298

Description

@stolen-byte

Currently backtrace is a hard dependency (and a heavy one at that), and there is no middle-ground between simple-eyre and color-eyre.

I believe most people want/need the colours/formatting and extra sections & suggestion helpers, however backtraces are very seldom used, end-users don't care about them, and they're not even available in properly-built release binaries anyway.

I would like to propose moving it behind a feature flag at least, allowing people to use the extras that color-eyre provides, without the unnecessary cruft inflating build times & binaries.

To clarify: i'm talking about all backtrace functionality, including the dependency.

Currently the only workaround is to use anyhow in no_std mode, so not even the environment variables have an effect.

Edit: it seems even if the dependency was optional, backtraces are still forced via the build-script + cfg attribute, why is everyone so obsessed with them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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