Cargo Features

[dependencies]
grass_compiler = { version = "0.13.4", default-features = false, features = ["random", "wasm-exports", "custom-builtin-fns"] }
default = custom-builtin-fns, random

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

random default = rand

Option (enabled by default): enable the builtin functions random([$limit]) and unique-id()

wasm-exports = wasm-bindgen

Option: expose JavaScript-friendly WebAssembly exports

Affects grass_compiler::from_string_js

custom-builtin-fns default

Option: expose internals necessary to implement custom builtin functions

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.

rand random

Enables rand

todo: use xorshift for random numbers

wasm-bindgen wasm-exports?