Skip to content

Commit

Permalink
wgpu-types implicit serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
KirmesBude committed Jan 28, 2024
1 parent 273684f commit 26537af
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 211 deletions.
2 changes: 1 addition & 1 deletion player/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ winit = { workspace = true, optional = true }

[dependencies.wgt]
workspace = true
features = ["deserialize"]
features = ["serde"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc]
workspace = true
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ serde_json.workspace = true
serde.workspace = true
wgpu-macros.workspace = true
wgpu.workspace = true
wgt = { workspace = true, features = ["deserialize"] }
wgt = { workspace = true, features = ["serde"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions wgpu-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ strict_asserts = ["wgt/strict_asserts"]
serde = ["serialize", "deserialize", "serial-pass", "wgt/serde"]

## Enables serialize functionality on common wgpu types.
serialize = ["dep:serde", "wgt/serialize", "arrayvec/serde"]
serialize = ["dep:serde", "wgt/serde", "arrayvec/serde"]

## Enables deserialize functionality on common wgpu types.
deserialize = ["dep:serde", "wgt/deserialize", "arrayvec/serde"]
deserialize = ["dep:serde", "wgt/serde", "arrayvec/serde"]

## Enable API tracing.
trace = ["ron", "serialize", "naga/serialize"]
Expand Down
3 changes: 0 additions & 3 deletions wgpu-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ targets = [
[lib]

[features]
serde = ["serialize", "deserialize"]
serialize = ["dep:serde"]
deserialize = ["dep:serde"]
strict_asserts = []
fragile-send-sync-non-atomic-wasm = []

Expand Down
Loading

0 comments on commit 26537af

Please sign in to comment.