[package] name = "zng-app-context" version = "0.5.12" authors = ["The Zng Project Developers"] edition = "2021" license = "Apache-2.0 OR MIT" readme = "README.md" description = "Part of the zng project." documentation = "https://zng-ui.github.io/doc/zng_app_context" repository = "https://github.com/zng-ui/zng" categories = ["gui"] keywords = ["gui", "ui", "user-interface", "zng"] [features] default = ["debug_default"] # 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. multi_app = [] # Enable `"multi_app"` in debug builds. debug_default = [] # 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. dyn_closure = [] [dependencies] zng-unique-id = { path = "../zng-unique-id", version = "0.4.7" } zng-env = { path = "../zng-env", version = "0.3.7" } zng-txt = { path = "../zng-txt", version = "0.2.8" } parking_lot = "0.12" rustc-hash = "2.0" hashbrown = { version = "0.15", features = ["rayon"] } tracing = "0.1" serde = { version = "1.0", features = ["derive"] } bytemuck = { version = "1.15", features = ["derive"] } [package.metadata.docs.rs] all-features = true