Skip to content

Commit c71d670

Browse files
authored
Fix Features when Depending on wgpu (#6915)
1 parent aa7bec6 commit c71d670

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ arrayvec = "0.7"
8080
bincode = "1"
8181
bit-vec = "0.8"
8282
bitflags = "2.7"
83-
bytemuck = { version = "1.21" }
83+
bytemuck = { version = "1.21", features = ["derive", "min_const_generics"] }
8484
cfg_aliases = "0.2.1"
8585
cfg-if = "1"
8686
criterion = "0.5"
@@ -134,7 +134,13 @@ strum = { version = "0.26.0", features = ["derive"] }
134134
trybuild = "1"
135135
tracy-client = "0.17"
136136
thiserror = "2"
137-
wgpu = { version = "23.0.1", path = "./wgpu", default-features = false }
137+
wgpu = { version = "23.0.1", path = "./wgpu", default-features = false, features = [
138+
"serde",
139+
"wgsl",
140+
"dx12",
141+
"metal",
142+
"static-dxc",
143+
] }
138144
wgpu-core = { version = "23.0.1", path = "./wgpu-core" }
139145
wgpu-macros = { version = "23.0.0", path = "./wgpu-macros" }
140146
wgpu-test = { version = "23.0.0", path = "./tests" }

benches/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ pollster.workspace = true
4747
profiling.workspace = true
4848
rayon.workspace = true
4949
tracy-client = { workspace = true, optional = true }
50-
wgpu = { workspace = true, features = ["wgsl", "metal", "dx12"] }
50+
wgpu.workspace = true

examples/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ webgl = ["wgpu/webgl"]
2929
webgpu = ["wgpu/webgpu"]
3030

3131
[dependencies]
32-
bytemuck = { workspace = true, features = ["derive"] }
32+
bytemuck.workspace = true
3333
cfg-if.workspace = true
3434
encase = { workspace = true, features = ["glam"] }
3535
flume.workspace = true
@@ -43,11 +43,7 @@ obj.workspace = true
4343
png.workspace = true
4444
pollster.workspace = true
4545
web-time.workspace = true
46-
wgpu = { workspace = true, default-features = false, features = [
47-
"wgsl",
48-
"dx12",
49-
"metal",
50-
] }
46+
wgpu.workspace = true
5147
winit.workspace = true
5248

5349
[dev-dependencies]

tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ serde_json.workspace = true
4545
serde.workspace = true
4646
strum = { workspace = true, features = ["derive"] }
4747
trybuild.workspace = true
48-
wgpu = { workspace = true, features = ["wgsl", "static-dxc"] }
48+
wgpu.workspace = true
4949
wgpu-macros.workspace = true
5050
wgt = { workspace = true, features = ["serde"] }
5151

wgpu-info/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ env_logger.workspace = true
1616
pico-args.workspace = true
1717
serde = { workspace = true, features = ["default"] }
1818
serde_json.workspace = true
19-
wgpu = { workspace = true, features = ["serde", "dx12", "metal", "static-dxc"] }
19+
wgpu.workspace = true

0 commit comments

Comments
 (0)