Skip to content

Commit 35f131f

Browse files
Remove default features from petgraph (gfx-rs#7591)
1 parent 6626378 commit 35f131f

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

naga/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ arbitrary = [
5656
"half/arbitrary",
5757
"half/std",
5858
]
59-
spv-in = ["dep:petgraph", "dep:spirv"]
59+
spv-in = ["dep:petgraph", "petgraph/graphmap", "dep:spirv"]
6060
spv-out = ["dep:spirv"]
6161
wgsl-in = ["dep:hexf-parse", "dep:strum", "dep:unicode-ident", "compact"]
6262
wgsl-out = []
@@ -102,7 +102,7 @@ serde = { version = "1.0.219", default-features = false, features = [
102102
"alloc",
103103
"derive",
104104
], optional = true }
105-
petgraph = { version = "0.8", optional = true }
105+
petgraph = { version = "0.8", optional = true, default-features = false }
106106
pp-rs = { version = "0.2.1", optional = true }
107107
hexf-parse = { version = "0.2.1", optional = true }
108108
unicode-ident = { version = "1.0", optional = true }

naga/src/front/spv/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,12 @@ pub struct Frontend<I> {
617617
// Graph of all function calls through the module.
618618
// It's used to sort the functions (as nodes) topologically,
619619
// so that in the IR any called function is already known.
620-
function_call_graph: GraphMap<spirv::Word, (), petgraph::Directed>,
620+
function_call_graph: GraphMap<
621+
spirv::Word,
622+
(),
623+
petgraph::Directed,
624+
core::hash::BuildHasherDefault<rustc_hash::FxHasher>,
625+
>,
621626
options: Options,
622627

623628
/// Maps for a switch from a case target to the respective body and associated literals that

0 commit comments

Comments
 (0)