Skip to content

Commit 8fd08ac

Browse files
waywardmonkeysteoxoy
authored andcommitted
Use derive feature on serde rather than serde_derive
The current code works, but `serde` documents that the feature to use is `derive` (which then happens to use the `serde_derive` implicit feature).
1 parent 9796766 commit 8fd08ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wgpu-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ profiling = { version = "1", default-features = false }
114114
raw-window-handle = { version = "0.6", optional = true }
115115
ron = { version = "0.8", optional = true }
116116
rustc-hash = "1.1"
117-
serde = { version = "1", features = ["serde_derive"], optional = true }
117+
serde = { version = "1", features = ["derive"], optional = true }
118118
smallvec = "1"
119119
thiserror = "1"
120120

wgpu-types/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ counters = []
3535

3636
[dependencies]
3737
bitflags = "2"
38-
serde = { version = "1", features = ["serde_derive"], optional = true }
38+
serde = { version = "1", features = ["derive"], optional = true }
3939

4040
[target.'cfg(target_arch = "wasm32")'.dependencies]
4141
js-sys = "0.3.69"
@@ -47,5 +47,5 @@ web-sys = { version = "0.3.69", features = [
4747
] }
4848

4949
[dev-dependencies]
50-
serde = { version = "1", features = ["serde_derive"] }
50+
serde = { version = "1", features = ["derive"] }
5151
serde_json = "1.0.119"

0 commit comments

Comments
 (0)