forked from crate-ci/cargo-release
-
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.
Adding feature-flags to release configuration
This PR adds `features` and `all_features` as both flags to the CLI as well as the `release.toml` configuration. This change allows you to tell `cargo-release` to verify the package with certain features enabled, in order to avoid needing to use `no-verify` for crates that depend on certain features being enabled (or simply any feature) before they can be uploaded. This change is dependent on rust-lang/cargo#6453, which adds this feature to the base `cargo publish` command. The motivation behind this PR is the same as the above mentioned cargo PR: reducing the amount of packaging errors that can happen due to people not being able to verify their code because it has some feature requirements for compilation, ultimately resulting in a more healthy package ecosystem.
- Loading branch information
1 parent
31d55fa
commit ec2a3a3
Showing
3 changed files
with
91 additions
and
21 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
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