forked from tokio-rs/tracing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: avoid giant feature powersets using
cargo-hack
(tokio-rs#1984)
## Motivation The `tracing`' crate's feature powerset is kind of unmanageably huge due to the large number of `max_level_XXX` and `release_max_level_XXX` feature flags. This is why we currently _don't_ run a `cargo-hack` feature powerset check for it on CI. However, I forgot about that when I added feature powerset checks to the `bin/publish` script, so publishing a `tracing` release results in a combinatorial explosion that takes a *very* long time to complete. ## Solution It turns out that `cargo-hack` actually has flags for controlling what features are included in the powerset (`--include-features` and `--exclude-features`). This branch modifies `bin/publish` to use those flags when checking the `tracing` and `tracing-subscriber` crate. Additionally, I've modified the CI `cargo-hack` job to use the same flags, so that it can now check `tracing` and `tracing-subscriber`. This allows us to remove the manual feature check jobs for those crates from CI. Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters