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-in = ["dep:petgraph", "dep:spirv"]
|
||||||
spv-out = ["dep:spirv"]
|
spv-out = ["dep:spirv"]
|
||||||
wgsl-in = [
|
wgsl-in = ["dep:hexf-parse", "dep:strum", "dep:unicode-ident", "compact"]
|
||||||
"dep:hexf-parse",
|
|
||||||
"dep:strum",
|
|
||||||
"dep:unicode-ident",
|
|
||||||
"indexmap/std",
|
|
||||||
"compact",
|
|
||||||
]
|
|
||||||
wgsl-out = []
|
wgsl-out = []
|
||||||
|
|
||||||
## Enables outputting to HLSL (Microsoft's High-Level Shader Language).
|
## Enables outputting to HLSL (Microsoft's High-Level Shader Language).
|
||||||
|
|||||||
@ -4,12 +4,12 @@ use alloc::boxed::Box;
|
|||||||
|
|
||||||
use crate::{Arena, Handle};
|
use crate::{Arena, Handle};
|
||||||
|
|
||||||
|
#[cfg(feature = "wgsl-in")]
|
||||||
|
use crate::FastIndexMap;
|
||||||
#[cfg(feature = "wgsl-in")]
|
#[cfg(feature = "wgsl-in")]
|
||||||
use crate::Span;
|
use crate::Span;
|
||||||
#[cfg(feature = "arbitrary")]
|
#[cfg(feature = "arbitrary")]
|
||||||
use arbitrary::Arbitrary;
|
use arbitrary::Arbitrary;
|
||||||
#[cfg(feature = "wgsl-in")]
|
|
||||||
use indexmap::IndexMap;
|
|
||||||
#[cfg(feature = "deserialize")]
|
#[cfg(feature = "deserialize")]
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
#[cfg(feature = "serialize")]
|
#[cfg(feature = "serialize")]
|
||||||
@ -133,7 +133,7 @@ pub(crate) enum ShouldConflictOnFullDuplicate {
|
|||||||
/// [`add`]: DiagnosticFilterMap::add
|
/// [`add`]: DiagnosticFilterMap::add
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
#[cfg(feature = "wgsl-in")]
|
#[cfg(feature = "wgsl-in")]
|
||||||
pub(crate) struct DiagnosticFilterMap(IndexMap<FilterableTriggeringRule, (Severity, Span)>);
|
pub(crate) struct DiagnosticFilterMap(FastIndexMap<FilterableTriggeringRule, (Severity, Span)>);
|
||||||
|
|
||||||
#[cfg(feature = "wgsl-in")]
|
#[cfg(feature = "wgsl-in")]
|
||||||
impl DiagnosticFilterMap {
|
impl DiagnosticFilterMap {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user