Skip to content

Commit a622265

Browse files
committed
difftest: cargo windows bug workaround, mirror all workspace dependencies
1 parent 0d666e5 commit a622265

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.9.0
5252
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.9.0" }
5353

5454
# difftest libraries mirrored from difftest workspace
55+
difftest = { path = "tests/difftests/tests/lib" }
5556
difftest-runner = { path = "tests/difftests/runner", default-features = false }
57+
difftest-types = { path = "tests/difftests/types" }
5658

5759
# External dependencies that need to be mentioned more than once.
5860
tracing = "0.1"

crates/rustc_codegen_spirv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ skip-toolchain-check = []
3434
# HACK(eddyb) these only exist to unify features across dependency trees,
3535
# in order to avoid multiple separate instances of `rustc_codegen_spirv`.
3636
ahash = { version = "0.8.11", features = ["no-rng"] }
37-
bytemuck = { version = "1.20.0", features = ["aarch64_simd", "derive"] }
37+
bytemuck = { workspace = true, features = ["aarch64_simd"] }
3838
log = { version = "0.4.22", features = ["std"] }
3939
regex = { version = "1", features = ["perf"] }
4040
rustix = { version = "1.0.8", features = ["all-apis"] }

crates/spirv-std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ workspace = true
1414
spirv-std-types.workspace = true
1515
spirv-std-macros.workspace = true
1616
bitflags = "1.3.2"
17-
bytemuck = { version = "1.18.0", features = ["derive"], optional = true }
17+
bytemuck = { workspace = true, optional = true }
1818

1919
[target.'cfg(target_arch = "spirv")'.dependencies]
2020
num-traits = { workspace = true, features = ["libm"] }

tests/difftests/tests/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ unexpected_cfgs = { level = "allow", check-cfg = [
6161
'cfg(target_arch, values("spirv"))',
6262
] }
6363

64+
# Cargo Windows bug: workspace dependencies of crates.io dependencies are resolved
65+
# incorrectly in the root workspace instead of this difftest workspace. So all
66+
# workspace dependencies here must be mirrored into the root workspace as well.
6467
[workspace.dependencies]
6568
spirv-builder = { path = "../../../crates/spirv-builder", default-features = false }
6669
spirv-std = { path = "../../../crates/spirv-std", version = "=0.9.0" }
@@ -69,7 +72,7 @@ difftest-types = { path = "../types" }
6972
# External dependencies that need to be mentioned more than once.
7073
num-traits = { version = "0.2.15", default-features = false }
7174
glam = { version = ">=0.30.8", default-features = false }
72-
bytemuck = { version = "1.14", features = ["derive"] }
75+
bytemuck = { version = "1.23", features = ["derive"] }
7376

7477
# Enable incremental by default in release mode.
7578
[profile.release]

0 commit comments

Comments
 (0)