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).
This commit is contained in:
Bruce Mitchener 2024-07-11 16:08:11 +07:00 committed by Teodor Tanasoaia
parent 9796766e8e
commit 8fd08ac638
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ profiling = { version = "1", default-features = false }
raw-window-handle = { version = "0.6", optional = true } raw-window-handle = { version = "0.6", optional = true }
ron = { version = "0.8", optional = true } ron = { version = "0.8", optional = true }
rustc-hash = "1.1" rustc-hash = "1.1"
serde = { version = "1", features = ["serde_derive"], optional = true } serde = { version = "1", features = ["derive"], optional = true }
smallvec = "1" smallvec = "1"
thiserror = "1" thiserror = "1"

View File

@ -35,7 +35,7 @@ counters = []
[dependencies] [dependencies]
bitflags = "2" bitflags = "2"
serde = { version = "1", features = ["serde_derive"], optional = true } serde = { version = "1", features = ["derive"], optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies] [target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.69" js-sys = "0.3.69"
@ -47,5 +47,5 @@ web-sys = { version = "0.3.69", features = [
] } ] }
[dev-dependencies] [dev-dependencies]
serde = { version = "1", features = ["serde_derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1.0.119" serde_json = "1.0.119"