Remove default features from petgraph (#7591)

This commit is contained in:
Zachary Harrold 2025-04-23 13:30:36 +10:00 committed by GitHub
parent 66263789bc
commit 35f131ff10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

1
Cargo.lock generated
View File

@ -3024,7 +3024,6 @@ dependencies = [
"fixedbitset 0.5.7",
"hashbrown",
"indexmap",
"serde",
]
[[package]]

View File

@ -56,7 +56,7 @@ arbitrary = [
"half/arbitrary",
"half/std",
]
spv-in = ["dep:petgraph", "dep:spirv"]
spv-in = ["dep:petgraph", "petgraph/graphmap", "dep:spirv"]
spv-out = ["dep:spirv"]
wgsl-in = ["dep:hexf-parse", "dep:strum", "dep:unicode-ident", "compact"]
wgsl-out = []
@ -102,7 +102,7 @@ serde = { version = "1.0.219", default-features = false, features = [
"alloc",
"derive",
], optional = true }
petgraph = { version = "0.8", optional = true }
petgraph = { version = "0.8", optional = true, default-features = false }
pp-rs = { version = "0.2.1", optional = true }
hexf-parse = { version = "0.2.1", optional = true }
unicode-ident = { version = "1.0", optional = true }

View File

@ -617,7 +617,12 @@ pub struct Frontend<I> {
// Graph of all function calls through the module.
// It's used to sort the functions (as nodes) topologically,
// so that in the IR any called function is already known.
function_call_graph: GraphMap<spirv::Word, (), petgraph::Directed>,
function_call_graph: GraphMap<
spirv::Word,
(),
petgraph::Directed,
core::hash::BuildHasherDefault<rustc_hash::FxHasher>,
>,
options: Options,
/// Maps for a switch from a case target to the respective body and associated literals that