-
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(cargo-bazel): ignore example crates when checking if proc-macro (#…
…2596) # WHAT * ignore example crate types when checking if it is a proc-macro # WHY When building the list of `deps` and `proc_macro_deps` for a given crate, dependency crates which contain examples in their Cargo.yaml of of type `proc-macro` cause the dependency to be added to the `proc_macro_deps`. The example crate types should be ignored. Fixes #2577 Co-authored-by: UebelAndre <[email protected]>
- Loading branch information
1 parent
4769fe6
commit fe2bc68
Showing
5 changed files
with
2,157 additions
and
4 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
74 changes: 74 additions & 0 deletions
74
crate_universe/test_data/metadata/example_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.
14 changes: 14 additions & 0 deletions
14
crate_universe/test_data/metadata/example_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,14 @@ | ||
[package] | ||
name = "example-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] | ||
proc-macro-rules = "=0.4.0" |
Oops, something went wrong.