44 releases (10 breaking)

Uses new Rust 2024

0.12.0 Feb 25, 2025
0.11.5 Jan 18, 2025
0.11.2 Dec 24, 2024
0.10.5 Nov 23, 2024
0.6.5 Jul 26, 2024

#1541 in GUI

Download history 319/week @ 2024-11-20 257/week @ 2024-11-27 427/week @ 2024-12-04 133/week @ 2024-12-11 288/week @ 2024-12-18 461/week @ 2024-12-25 311/week @ 2025-01-01 330/week @ 2025-01-08 315/week @ 2025-01-15 350/week @ 2025-01-22 188/week @ 2025-01-29 319/week @ 2025-02-05 225/week @ 2025-02-12 148/week @ 2025-02-19 126/week @ 2025-02-26 26/week @ 2025-03-05

559 downloads per month
Used in 55 crates (18 directly)

Apache-2.0 OR MIT

630KB
13K SLoC

This crate is part of the zng project.

Cargo Features

This crate provides 2 feature flags, 1 enabled by default.

"ipc"

Enables creation of separate or pre-build view.

Only enables in cfg(not(any(target_os = "android", target_arch = "wasm32", target_os = "ios"))) builds.

Enabled by default.

"var"

Implement IntoVar<T> for API types.


lib.rs:

The View Process API.

Zng isolates all render and windowing related code to a different process (the view-process), this crate provides the API that must be implemented to create a view-process backend, plus the Controller that can be used from an app-process to spawn and communicate with a view-process.

VERSION

The VERSION of this crate must match exactly in both App-Process and View-Process, otherwise a runtime panic error is generated.

Same Process Patch

Dynamically loaded same process implementers must propagate a StaticPatch, otherwise the view will not connect.

Crate

Dependencies

~6–35MB
~552K SLoC