60 releases

Uses new Rust 2024

new 0.16.7 Jul 11, 2025
0.16.3 Jun 7, 2025
0.15.1 Mar 19, 2025
0.14.3 Dec 26, 2024
0.9.6 Jul 26, 2024

#602 in GUI

Download history 77/week @ 2025-03-21 26/week @ 2025-03-28 260/week @ 2025-04-04 72/week @ 2025-04-11 130/week @ 2025-04-18 130/week @ 2025-04-25 59/week @ 2025-05-02 303/week @ 2025-05-09 453/week @ 2025-05-16 69/week @ 2025-05-23 53/week @ 2025-05-30 233/week @ 2025-06-06 89/week @ 2025-06-13 89/week @ 2025-06-20 347/week @ 2025-06-27 419/week @ 2025-07-04

971 downloads per month
Used in 51 crates (37 directly)

Apache-2.0 OR MIT

3MB
65K SLoC

This crate is part of the zng project.

Cargo Features

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

"debug_default"

Enable the "dyn_*", "inspector" and "trace_recorder" features in debug builds.

Enabled by default.

"dyn_node"

Use dynamic dispatch at the node level by placing each property node in a BoxedUiNode and enabling UiNode::cfg_boxed.

This speeds-up compilation time at the cost of runtime.

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

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

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

Enabled by default.

"ipc"

Enables IPC tasks and pre-build views and connecting to views running in another process.

Enabled by default.

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

Dependencies

~12–45MB
~717K SLoC