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
somewhere in the dependency tree.default-features = false - 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