Skip to content

Commit

Permalink
[naga] Require hashbrown's serde feature as a dev-dependency.
Browse files Browse the repository at this point in the history
Add `hashbrown` with the `"serde"` feature as a development dependency
for Naga. Regardless of whether Naga's `deserialize` feature is
enabled, the snapshot tests need to deserialize parameters saved in
files as RON text.

It would also suffice to use `std::collections::HashSet` in the
snapshot tests, although we would need to build a `naga::FashHashSet`
from the std `HashSet` at one point. Adding the dev-dependency seems
slightly simpler.

Fixes #7038.
  • Loading branch information
jimblandy committed Jan 30, 2025
1 parent a8cc83e commit d04df38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions naga/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,4 @@ ron = "0.8.0"
rspirv = { version = "0.11", git = "https://github.com/gfx-rs/rspirv", rev = "b969f175d5663258b4891e44b76c1544da9661ab" }
serde = { workspace = true, features = ["default", "derive"] }
spirv = { version = "0.3", features = ["deserialize"] }
hashbrown = { workspace = true, features = ["serde"] }

0 comments on commit d04df38

Please sign in to comment.