-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of proc macro deps with multiple kinds (#2211)
A proc macro dependency may have multiple kinds such as build and normal. Due to a bug in filtering predicate, such dependencies are considered only as build dependency. This PR fixes the bug and adds a regression test. Issue: #2210 --------- Co-authored-by: UebelAndre <[email protected]>
- Loading branch information
1 parent
535af8b
commit 9455b71
Showing
5 changed files
with
363 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
crate_universe/test_data/metadata/multi_kind_proc_macro_dep/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
crate_universe/test_data/metadata/multi_kind_proc_macro_dep/Cargo.toml
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,17 @@ | ||
[package] | ||
name = "multi-kind-proc-macro-dep" | ||
version = "0.1.0" | ||
edition = "2018" | ||
|
||
# Required to satisfy cargo but no `lib.rs` is expected to | ||
# exist within test data. | ||
[lib] | ||
path = "lib.rs" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
paste = "=1.0.14" | ||
|
||
[build-dependencies] | ||
paste = "=1.0.14" |
297 changes: 297 additions & 0 deletions
297
crate_universe/test_data/metadata/multi_kind_proc_macro_dep/metadata.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.