33 releases (8 breaking)

new 0.10.2 Oct 19, 2024
0.9.0 Sep 8, 2024
0.6.5 Jul 26, 2024

#1351 in GUI

Download history 181/week @ 2024-06-29 1126/week @ 2024-07-06 702/week @ 2024-07-13 409/week @ 2024-07-20 567/week @ 2024-07-27 274/week @ 2024-08-03 407/week @ 2024-08-10 627/week @ 2024-08-17 320/week @ 2024-08-24 462/week @ 2024-08-31 544/week @ 2024-09-07 663/week @ 2024-09-14 578/week @ 2024-09-21 332/week @ 2024-09-28 215/week @ 2024-10-05 133/week @ 2024-10-12

1,272 downloads per month
Used in 53 crates (17 directly)

Apache-2.0 OR MIT

620KB
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"))) 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

~7–37MB
~589K SLoC