| Crates.io | zng-app |
| lib.rs | zng-app |
| version | 0.21.4 |
| created_at | 2024-04-07 20:53:55.984605+00 |
| updated_at | 2026-01-06 21:10:30.131304+00 |
| description | Part of the zng project. |
| homepage | |
| repository | https://github.com/zng-ui/zng |
| max_upload_size | |
| id | 1199536 |
| size | 1,565,562 |
This crate is part of the zng project.
This crate provides 11 feature flags, 0 enabled by default.
"inspector"Instrument each widget instance to retain build information.
"dyn_app_extension"Use dynamic dispatch at the app-extension level.
This speeds-up compilation time at the cost of runtime.
"test_util"Like cfg(test) but also visible in docs and integration tests.
"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.
Not enabled by default, but enabled by feature="test_util".
"trace_widget"Instrument every widget outer-most node to trace UI methods.
"trace_wgt_item"Instrument every property and intrinsic node to trace UI methods.
Note that this can cause very large trace files and bad performance.
"crash_handler"Allow app-process crash handler.
Only enables in not(any(target_arch = "wasm32", target_os = "android", target_os = "ios")) builds.
"trace_recorder"Enable trace recording.
Note that this does not auto start recording, to do that run with the "ZNG_RECORD_TRACE" env var set.
See zng::app::trace_recorder for more details.
"ipc"Enables IPC tasks and pre-build views and connecting to views running in another process.
"deadlock_detection"Spawns a thread on app creation that checks and prints parking_lot deadlocks.
Not enabled by default, but enabled by feature="test_util".
See zng::app::spawn_deadlock_detection for more details.
"memory_profiler"Enable instrumented allocator and record allocations.
Note that this replaces the #[global_allocator] and has an impact in performance.
See zng::app::memory_profiler for more details.