17 unstable releases (3 breaking)

new 0.5.5 Jul 26, 2024
0.5.4 Jul 18, 2024
0.5.2 Jun 20, 2024
0.4.2 Jun 4, 2024
0.2.2 Apr 10, 2024

#1275 in GUI

Download history 369/week @ 2024-04-04 561/week @ 2024-04-11 269/week @ 2024-04-18 245/week @ 2024-04-25 111/week @ 2024-05-02 196/week @ 2024-05-09 502/week @ 2024-05-16 267/week @ 2024-05-23 677/week @ 2024-05-30 719/week @ 2024-06-06 430/week @ 2024-06-13 637/week @ 2024-06-20 179/week @ 2024-06-27 540/week @ 2024-07-04 649/week @ 2024-07-11 494/week @ 2024-07-18

1,956 downloads per month
Used in 55 crates (19 directly)

Apache-2.0 OR MIT

165KB
3.5K SLoC

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.


lib.rs:

App execution context.

Crate

Dependencies

~5–15MB
~185K SLoC