Cargo Features

Naga has no features set by default.

[dependencies]
naga = { version = "0.19.2", features = ["clone", "dot-out", "glsl-in", "glsl-out", "msl-out", "deserialize", "spv-in", "spv-out", "wgsl-in", "wgsl-out", "hlsl-out", "compact", "arbitrary"] }
clone
dot-out

Affects back::dot

glsl-in = pp-rs

Affects front::glsl

glsl-out

Affects back::glsl

msl-out

Affects back::msl

serialize deserialize = serde

Enables serde of bitflags and indexmap

spv-in = petgraph, spirv

Affects front::spv

spv-out = spirv

Affects back::spv

wgsl-in = compact, hexf-parse, unicode-xid

Affects front::wgsl, keywords::wgsl

wgsl-out

Affects back::wgsl, keywords::wgsl

hlsl-out

Affects back::hlsl

compact wgsl-in?

Affects naga::compact

arbitrary

Enables arbitrary, arbitrary of bitflags and indexmap

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

spirv spv-in? spv-out?
serde deserialize? serialize?
petgraph spv-in?
pp-rs glsl-in?
hexf-parse wgsl-in?
unicode-xid wgsl-in?