-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make unknown features on
cargo add
more discoverable
- Loading branch information
1 parent
d924a25
commit baee4cb
Showing
8 changed files
with
105 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
Updating `dummy-registry` index | ||
Adding your-face v99999.0.0 to dependencies. | ||
Features: | ||
+ noze | ||
- ears | ||
- eyes | ||
- mouth | ||
- nose | ||
error: unrecognized features: ["noze"] | ||
error: unrecognized feature for crate your-face: noze | ||
disabled features: | ||
ears, eyes, mouth, nose |
4 changes: 4 additions & 0 deletions
4
tests/testsuite/cargo_add/features_unknown/stderr_no_features.log
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package v99999.0.0 to dependencies. | ||
error: unrecognized feature for crate my-package: noze | ||
no features available for crate my-package |
Empty file.
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
17 changes: 6 additions & 11 deletions
17
tests/testsuite/cargo_add/unknown_inherited_feature/stderr.log
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
Adding foo (workspace) to dependencies. | ||
Features as of v0.0.0: | ||
+ default-base | ||
+ default-merge-base | ||
+ default-test-base | ||
+ not_recognized | ||
+ test | ||
+ test-base | ||
- merge | ||
- merge-base | ||
- unrelated | ||
error: unrecognized features: ["not_recognized"] | ||
error: unrecognized feature for crate foo: not_recognized | ||
disabled features: | ||
merge, merge-base, unrelated | ||
enabled features: | ||
default-base, default-merge-base, default-test-base | ||
long-feature-name-because-of-formatting-reasons, test, test-base |