zng/crates/zng-var/README.md

23 lines
579 B
Markdown

<!--do doc --readme header-->
This crate is part of the [`zng`](https://github.com/zng-ui/zng?tab=readme-ov-file#crates) project.
<!--do doc --readme features-->
## Cargo Features
This crate provides 2 feature flags, 1 enabled by default.
#### `"debug_default"`
Signal the build script to enable the `"dyn_*"` features in debug builds.
*Enabled by default.*
#### `"dyn_closure"`
Box closures at opportune places, such as `Var::map`, reducing the number of monomorphised types.
This speeds-up compilation time at the cost of runtime.
<!--do doc --readme #SECTION-END-->