Skip to content

Commit f79cf6e

Browse files
Remove indexmap/std from wgsl-in (#7586)
1 parent d2ab981 commit f79cf6e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

naga/Cargo.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,7 @@ arbitrary = [
5858
]
5959
spv-in = ["dep:petgraph", "dep:spirv"]
6060
spv-out = ["dep:spirv"]
61-
wgsl-in = [
62-
"dep:hexf-parse",
63-
"dep:strum",
64-
"dep:unicode-ident",
65-
"indexmap/std",
66-
"compact",
67-
]
61+
wgsl-in = ["dep:hexf-parse", "dep:strum", "dep:unicode-ident", "compact"]
6862
wgsl-out = []
6963

7064
## Enables outputting to HLSL (Microsoft's High-Level Shader Language).

naga/src/diagnostic_filter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use alloc::boxed::Box;
44

55
use crate::{Arena, Handle};
66

7+
#[cfg(feature = "wgsl-in")]
8+
use crate::FastIndexMap;
79
#[cfg(feature = "wgsl-in")]
810
use crate::Span;
911
#[cfg(feature = "arbitrary")]
1012
use arbitrary::Arbitrary;
11-
#[cfg(feature = "wgsl-in")]
12-
use indexmap::IndexMap;
1313
#[cfg(feature = "deserialize")]
1414
use serde::Deserialize;
1515
#[cfg(feature = "serialize")]
@@ -133,7 +133,7 @@ pub(crate) enum ShouldConflictOnFullDuplicate {
133133
/// [`add`]: DiagnosticFilterMap::add
134134
#[derive(Clone, Debug, Default)]
135135
#[cfg(feature = "wgsl-in")]
136-
pub(crate) struct DiagnosticFilterMap(IndexMap<FilterableTriggeringRule, (Severity, Span)>);
136+
pub(crate) struct DiagnosticFilterMap(FastIndexMap<FilterableTriggeringRule, (Severity, Span)>);
137137

138138
#[cfg(feature = "wgsl-in")]
139139
impl DiagnosticFilterMap {

0 commit comments

Comments
 (0)