Skip to content

Commit 6dc23af

Browse files
committed
Avoid rebuilding rustc_codegen_spirv between example runners.
1 parent 90db8e2 commit 6dc23af

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Cargo.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rustc_codegen_spirv/Cargo.toml

+10-3
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@ use-compiled-tools = ["spirv-tools/use-compiled-tools"]
3232
# Enable this feature to be able to experiment with other versions.
3333
skip-toolchain-check = []
3434

35+
# HACK(eddyb) these are not real "build dependencies", but rather dependencies
36+
# of proc macros, which we want to enable extra features in (without having
37+
# a proc macro crate to do that through), for the same reasons as the list at
38+
# the start of `[dependencies]` (avoiding unnecessary rebuilds).
39+
[build-dependencies]
40+
syn = { version = "1", features = ["extra-traits", "full"] }
3541

3642
[dependencies]
3743
# HACK(eddyb) these only exist to unify features across dependency trees,
3844
# in order to avoid multiple separate instances of `rustc_codegen_spirv`.
39-
hashbrown = { version = "0.11", features = ["default"] }
45+
hashbrown = "0.11"
4046
libc = { version = "0.2", features = ["align", "extra_traits"] }
4147
num-traits = { version = "0.2", features = ["libm"] }
42-
syn = { version = "1", features = ["visit", "visit-mut"] }
48+
once_cell = "1"
49+
regex = { version = "1", features = ["perf"] }
4350

4451
# Normal dependencies.
4552
ar = "0.9.0"
@@ -50,7 +57,7 @@ rustc-demangle = "0.1.21"
5057
sanitize-filename = "0.4"
5158
serde = { version = "1.0", features = ["derive"] }
5259
serde_json = "1.0"
53-
smallvec = "1.6.1"
60+
smallvec = { version = "1.6.1", features = ["union"] }
5461
spirv-tools = { version = "0.8", default-features = false }
5562
rustc_codegen_spirv-types = { path = "../rustc_codegen_spirv-types", version = "0.4.0-alpha.15" }
5663

0 commit comments

Comments
 (0)