zng/crates/zng-app-context
Samuel Guerra 0bb2db1972 Release 0.4.0. 2024-04-26 16:49:15 -03:00
..
src Remove default bytemuck impl from zng-unique-id. (#126) 2024-04-22 11:25:08 -03:00
Cargo.toml Release 0.4.0. 2024-04-26 16:49:15 -03:00
README.md Reorganize project (#111) 2024-04-17 13:19:59 -03:00
build.rs Reorganize project (#111) 2024-04-17 13:19:59 -03:00

README.md

This crate is part of the zng project.

Cargo Features

This crate provides 3 feature flags, 1 enabled by default.

"multi_app"

Allows multiple app instances per-process.

This feature allows multiple apps, one app per thread at a time. The LocalContext tracks what app is currently running in each thread and app_local! statics switch to the value of each app depending on the current thread.

"debug_default"

Enable "multi_app" 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.