28 releases

Uses new Rust 2024

new 0.6.1 Mar 19, 2025
0.5.14 Feb 10, 2025
0.5.13 Dec 6, 2024
0.5.12 Nov 3, 2024
0.5.5 Jul 26, 2024

#17 in #zng

Download history 259/week @ 2024-11-29 464/week @ 2024-12-06 109/week @ 2024-12-13 464/week @ 2024-12-20 41/week @ 2024-12-27 162/week @ 2025-01-03 204/week @ 2025-01-10 355/week @ 2025-01-17 187/week @ 2025-01-24 128/week @ 2025-01-31 406/week @ 2025-02-07 136/week @ 2025-02-14 218/week @ 2025-02-21 63/week @ 2025-02-28 27/week @ 2025-03-07 159/week @ 2025-03-14

469 downloads per month
Used in 58 crates (19 directly)

Apache-2.0 OR MIT

175KB
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

~4–15MB
~213K SLoC