Cargo Features

librashader-naga has no features set by default.

[dependencies]
librashader-naga = { version = "0.14.0", 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 librashader-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?

Enables spirv ^0.2

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