- Docs
- enzUI framework
- Developers
Project layout and features
The enzUI crates, what each is for, and every Cargo feature an application can turn on.
An application usually depends on enzui-widgets with its defaults and reaches the rest through its forwarding features. Add another crate directly only for what it alone offers.
Crates
| Crate | What it is |
|---|---|
enzui-core | Actions, shortcuts, semantics, focus, portals, media and other runtime models |
enzui-theme | The enzUI Nebula theme in dark and light, the spacing, radius and typography scales, and the iced::Theme adapter |
enzui-widgets | The widget library and application shell |
enzui-icons | Bundled Lucide icons and the icon registry |
enzui-terminal | A GPU terminal widget |
enzui-services | Media (GStreamer, MPRIS), process transport and activation, credential store, document preview, Git status, OAuth, DNS, mail; each heavy backend behind a feature |
enzui-resources | Remote resource loading and image decoding |
enzui-external-image | DMA-BUF frames from another process, drawn on the renderer's own GPU device without a CPU copy |
enzui-clipboard | The Wayland clipboard on the application's own connection and seat |
enzui-clipboard-runtime | Installs that clipboard into an iced runtime |
enzui-wayland | Portal parent export, compositor glass, the system bell and surface hints |
enzui-parent-lease | Lifetime rules for an XDG portal parent lease |
enzui-activity | Background activity publishing |
enzui-center-protocol, enzui-agent, enzui-agent-app | Optional integration with the enzUI OS agent service; enzui-widgets does not depend on them |
enzui-security | Process-level security primitives |
enzui-frame-check | Checks that animated views replay what a full redraw draws (dev-dependency) |
enzui-test-support | Source scanners and test helpers (dev-dependency only) |
Every crate under crates/ has a README.md saying what it is for.
Kinds of feature
- Default features are on unless you turn them off.
- Opt-in features are for applications.
- Test-only features exist for test targets and measurement builds. They belong in
[dev-dependencies], never in what you ship.
enzui-widgets
| Feature | Kind | What it turns on |
|---|---|---|
x11 | opt-in | The X11 window backend (iced, clipboard) |
wayland | default | The Wayland window backend (iced, clipboard) |
desktop-portal | default | Follow the desktop's settings over the Settings portal: accent, contrast, text size, window buttons, input preferences and the UI font; quiet without a session bus |
portal-dbus | opt-in | The XDG desktop portal backend (file chooser, open URI, screen cast, notifications); starts a Tokio runtime when used |
application-dbus | opt-in | Single-instance launching and D-Bus activation (ApplicationService) |
shell-integration | opt-in | The tray icon and launcher badge |
emoji-picker | opt-in | emoji_picker: the emoji chooser and the names and shortcodes it searches |
locale-formatters | opt-in | Currency, percent, relative-time and duration formatting |
enzui-core
| Feature | Kind | What it turns on |
|---|---|---|
accesskit | opt-in | The AccessKit bridge for the accessibility tree (the widgets runtime enables it) |
application-dbus | opt-in | org.freedesktop.Application, single instance, search provider |
shell-integration | opt-in | tray (a status-notifier tray icon with a dbusmenu menu) and launcher_badge |
thumbnail-cache | opt-in | The freedesktop thumbnail cache, read and written |
locale-formatters | opt-in | Currency, percent, relative-time and duration formatting on Locale (ICU4X CLDR data) |
portal-dbus | opt-in | The XDG desktop portal D-Bus backend |
desktop-settings-portal | opt-in | The Settings portal source of desktop_settings |
desktop-font-portal | opt-in | The Settings portal source of desktop font preferences |
a11y-preferences-portal | opt-in | The Settings portal source of contrast preferences for materials |
notification-freedesktop | opt-in | Desktop notifications through org.freedesktop.Notifications outside a sandbox |
test-frame | test-only | The headless frame, keyboard_traversal_validation and chained_operation; see Testing |
perf-report | test-only | The repeatable workload report; implies test-frame |
enzui-core also has opt-in diagnostic features (native-invalidation, transition-capture, perf-counter, activation-native-iced) and several test-only fault-injection and observation features used by the framework's own tests.
enzui-theme
| Feature | Kind | What it turns on |
|---|---|---|
system-theme | default | The operating system's colour scheme as tasks and subscriptions |
system-reduced-motion | default | The operating system's reduced-motion setting |
desktop-fonts | default | The desktop font preference feed |
desktop-materials | default | The desktop material preference feed |
material-tuning | opt-in | Process-wide material preset overrides |
enzui-services
All off by default: each one links a backend or claims a bus name.
| Feature | What it turns on |
|---|---|
gstreamer | GStreamer audio and video services, and event sounds (event_sound) |
mpris | The MPRIS media-controls adapter |
pdf-preview | PDF page rendering through the system pdfium |
secret-service | The Secret Service backend of the credential store |
secret-portal | The Secret portal backend for sandboxed (Flatpak) apps; credential_store::connect_for_app picks it inside a sandbox |
oauth | OAuth 2.0 with PKCE through the system browser |
mail-transport | libcurl SMTP and IMAP transport |
archive | Archive extraction through the system libarchive |
spell-check | Spelling dictionaries through Enchant, or Hunspell dictionaries read directly |
extension-package | Extension packages: manifest, admission, store, worker protocol |
desktop-icons | Freedesktop icon theme lookup |
desktop-icon-portal | Icon lookup through the portal; implies desktop-icons |
enzui-resources
| Feature | Kind | What it turns on |
|---|---|---|
curl-transport | default | HTTP(S) loading through the system libcurl |
heif | opt-in | HEIC decoding through a runtime-loaded libheif |
local-images | opt-in | Images from local files |
first-frame-previews | opt-in | GIF and APNG posters from their first frame |
derived-previews | opt-in | Previews derived from other media |
image-ops | opt-in | ImageOperations: crop, encode and strip metadata |
Other crates
| Crate | Feature | Kind | What it turns on |
|---|---|---|---|
enzui-clipboard-runtime | wayland (default), x11 (opt-in) | Backend selection | The Wayland and X11 clipboards |
enzui-clipboard-runtime | image | opt-in | Clipboard images (PNG between applications) |
enzui-activity | launcher-entry | default | Dock progress through com.canonical.Unity.LauncherEntry when the activity socket is unreachable |
enzui-terminal | x11, wayland | opt-in | The window backend, when the crate is built on its own |
To build a client with no X11 code at all, turn off the defaults and select wayland on each crate; see Platform support.
Running examples that need a feature
Examples that need an opt-in feature declare it, and Cargo refuses to build them without it:
cargo run -p enzui-widgets --example gallery --features emoji-pickerExamples lists every example with its command.