mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Remove indexmap/std from wgsl-in (#7586)
This commit is contained in:
parent
d2ab981a76
commit
f79cf6ed23
@ -58,13 +58,7 @@ arbitrary = [
|
||||
]
|
||||
spv-in = ["dep:petgraph", "dep:spirv"]
|
||||
spv-out = ["dep:spirv"]
|
||||
wgsl-in = [
|
||||
"dep:hexf-parse",
|
||||
"dep:strum",
|
||||
"dep:unicode-ident",
|
||||
"indexmap/std",
|
||||
"compact",
|
||||
]
|
||||
wgsl-in = ["dep:hexf-parse", "dep:strum", "dep:unicode-ident", "compact"]
|
||||
wgsl-out = []
|
||||
|
||||
## Enables outputting to HLSL (Microsoft's High-Level Shader Language).
|
||||
|
||||
@ -4,12 +4,12 @@ use alloc::boxed::Box;
|
||||
|
||||
use crate::{Arena, Handle};
|
||||
|
||||
#[cfg(feature = "wgsl-in")]
|
||||
use crate::FastIndexMap;
|
||||
#[cfg(feature = "wgsl-in")]
|
||||
use crate::Span;
|
||||
#[cfg(feature = "arbitrary")]
|
||||
use arbitrary::Arbitrary;
|
||||
#[cfg(feature = "wgsl-in")]
|
||||
use indexmap::IndexMap;
|
||||
#[cfg(feature = "deserialize")]
|
||||
use serde::Deserialize;
|
||||
#[cfg(feature = "serialize")]
|
||||
@ -133,7 +133,7 @@ pub(crate) enum ShouldConflictOnFullDuplicate {
|
||||
/// [`add`]: DiagnosticFilterMap::add
|
||||
#[derive(Clone, Debug, Default)]
|
||||
#[cfg(feature = "wgsl-in")]
|
||||
pub(crate) struct DiagnosticFilterMap(IndexMap<FilterableTriggeringRule, (Severity, Span)>);
|
||||
pub(crate) struct DiagnosticFilterMap(FastIndexMap<FilterableTriggeringRule, (Severity, Span)>);
|
||||
|
||||
#[cfg(feature = "wgsl-in")]
|
||||
impl DiagnosticFilterMap {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user