Cargo Features

[dependencies]
wesl = { version = "0.1.0", default-features = false, features = ["imports", "attributes", "condcomp", "eval", "generics", "serde", "package"] }
default = condcomp, imports

These default features are set whenever wesl is added without default-features = false somewhere in the dependency tree.

imports default

Enables imports of wgsl-parse

wgsl-parse:

import declarations. reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/Imports.md

attributes condcomp generics?

Enables attributes of wgsl-parse

wgsl-parse:

allow attributes on most declarations and statements. reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/ConditionalTranslation.md#appendix-updated-grammar

condcomp default = attributes

Enables condcomp of wgsl-parse

wgsl-parse:

conditional translation attribute (@if). reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/ConditionalTranslation.md

eval

Affects wesl::eval, wesl::ExecResult, wesl::EvalResult, wesl::eval_str, wesl::eval, wesl::exec

generics = attributes

Enables generics of wgsl-parse

wgsl-parse:

reference: none yet

serde

Enables serde, serde of wgsl-parse

package

Enables proc-macro2 and quote