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

[DRAFT] Expose eyre features as color-eyre features - #142

Draft
thenorili wants to merge 1 commit into
eyre-rs:masterfrom
thenorili:dep-features
Draft

thenorili wants to merge 1 commit into
eyre-rs:masterfrom
thenorili:dep-features

Conversation

@thenorili

@thenorili thenorili commented Nov 19, 2023

Copy link
Copy Markdown

This change exposes all eyre features as color-eyre features, allowing you to test these dependency features combinatorially with cargo test-all-features. Default eyre features were added as default color-eyre features.

As it stands the resulting test suite is extremely long, 256 runs, too long for CI. The --chunks feature can be used to split up and parallelize this process, but it's still a too much for CI as it exists. Maybe some of the eyre features could be added manually to the CI, but I don't know what combinations we'd be interested in - @pksunkara had some ideas though. If we reduce the combinatorial complexity some with a more restrained cargo-all-features configuration maybe that'd be something we'd like to pursue!

p.s. all 256 tests passed on stable locally

This change exposes all eyre features as color-eyre features,
allowing you to test these dependency features combinatorially
with `cargo test-all-features`. Default eyre features were added
as default color-eyre features.

As it stands the resulting test suite is extremely long, 256 runs, too
long for CI. The --chunks feature can be used to split up and
parallelize this process, but it's still a too much for CI as it exists.
Maybe some of the eyre features could be added manually to the CI, but I
don't know what combinations we'd be interested in - @pksunkara had some
ideas though. If we reduce the combinatorial complexity some with a more
restrained cargo-all-features configuration maybe that'd be something
we'd like to pursue!
Comment thread Cargo.toml

[features]
default = ["track-caller", "capture-spantrace"]
default = ["track-caller", "capture-spantrace", "auto-install", "track-caller"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = ["track-caller", "capture-spantrace", "auto-install", "track-caller"]
default = ["auto-install", "capture-spantrace", "track-caller"]

"track-caller" was in there twice. It's easier to spot in alphabetic order.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eyre-rs/eyre#138 introduces "anyhow" as new eyre default feature flag.

eyre-rs/eyre#136 intends to make the new "anyhow" feature non-default in a breaking release.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants