Crates.io | zng-app-context |
lib.rs | zng-app-context |
version | 0.5.12 |
source | src |
created_at | 2024-04-07 16:45:46.539996 |
updated_at | 2024-11-03 12:14:07.280733 |
description | Part of the zng project. |
homepage | |
repository | https://github.com/zng-ui/zng |
max_upload_size | |
id | 1199310 |
size | 61,755 |
This crate is part of the zng
project.
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.