zest-gui
zest-gui is the top-level convenience crate for the zest GUI framework family.
It re-exports:
zest-corezest-themezest-widgetzest-simulatorwhen thesimulatorfeature is enabled
It also provides:
- a
preludemodule that pulls together the commonly used framework types - a
timere-export fromzest-core - an optional desktop
netmodule run::<A>(title)as the default simulator entry point when thesimulatorfeature is enabled
Features
simulator
Enables the default desktop runner by pulling in zest-simulator.
When this feature is enabled, applications can use:
.await;
net
Enables the desktop async HTTP shim built on:
embassy-timereqwestserde
The net module exists for desktop development; the source comments describe it as a compatibility layer that hides a blocking worker-thread implementation behind an async API.
Prelude
The prelude re-exports framework types from the lower-level crates, including:
- application/runtime types from
zest-core - theme types from
zest-theme - concrete widgets from
zest-widget - common
embedded-graphicsgeometry and color types
Basic usage
use *;
;
With the simulator feature enabled, the crate provides a ready-made desktop entry point:
async
For custom hardware, construct your own Platform and call Runtime::<A>::new().run(platform).await directly.
Package name and crate name
The package published to crates.io is zest-gui.
In Rust code, that package is imported as zest_gui unless the dependency is aliased in Cargo.toml.