23 releases (4 breaking)

new 0.6.3 Jul 12, 2024
0.6.2 Jul 11, 2024
0.5.4 Jun 20, 2024
0.4.4 May 31, 2024
0.2.7 Apr 15, 2024

#969 in GUI

Download history 481/week @ 2024-04-05 456/week @ 2024-04-12 296/week @ 2024-04-19 232/week @ 2024-04-26 264/week @ 2024-05-03 209/week @ 2024-05-10 583/week @ 2024-05-17 154/week @ 2024-05-24 546/week @ 2024-05-31 847/week @ 2024-06-07 388/week @ 2024-06-14 334/week @ 2024-06-21 97/week @ 2024-06-28

1,684 downloads per month
Used in 51 crates (16 directly)

Apache-2.0 OR MIT

605KB
12K 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.

When this is enabled communication with the view is (de)serialized which can add a minor cost, something like a 1ms per 3MB frame request.

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
~542K SLoC