Skip to content
  1. Docs
  2. enzUI framework
  3. Developers

Installation

The Rust toolchain, Linux system packages and pinned public forks needed to build enzUI and its examples.

enzUI targets Linux desktops. Wayland is the primary platform; X11 runs with a reduced feature set (see Platform support). Other operating systems are not supported.

Toolchain

Every build needs:

  • Rust 1.95 or newer (edition 2024) and Git.
  • A C toolchain and pkg-config.
  • The lld linker. The repository's .cargo/config.toml links x86_64 builds with -fuse-ld=lld, because the large test binaries link several times faster with it. To link with the system default for one command, set RUSTFLAGS="" (this rebuilds every crate once).
  • The Wayland client library, libxkbcommon, and a Vulkan loader with Mesa (or vendor) drivers. OpenGL/EGL works when Vulkan is missing, and the software renderer needs neither.

System packages

These lists cover the default build plus the optional media, network and archive features, which is what contributors need because cargo wcheck and cargo wt build every feature.

DistributionPackages
Arch Linuxbase-devel git lld pkgconf wayland libxkbcommon vulkan-icd-loader mesa gstreamer gst-plugins-base gst-plugins-good curl openssl zlib libarchive
Fedoragcc git lld pkgconf-pkg-config wayland-devel libxkbcommon-devel vulkan-loader mesa-vulkan-drivers gstreamer1-devel gstreamer1-plugins-base-devel libcurl-devel openssl-devel zlib-devel libarchive
Debian, Ubuntubuild-essential git lld pkg-config libwayland-dev libxkbcommon-dev libvulkan1 mesa-vulkan-drivers libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcurl4-openssl-dev libssl-dev zlib1g-dev libarchive13

What optional features need

FeatureCrateBuild needsRun needs
gstreamer (audio and video)enzui-servicesGStreamer 1.x and gst-plugins-base development files, libcurlGStreamer plugins for the formats you play (good, bad, libav)
mail-transportenzui-serviceslibcurl, OpenSSL-
curl-transport (default)enzui-resourceslibcurl, OpenSSL, zlib-
pdf-previewenzui-services-a full libpdfium.so on the library path
archiveenzui-services-libarchive.so.13
portal-dbus and the portal servicesenzui-core-a D-Bus session bus and xdg-desktop-portal with a backend for your desktop
spell-checkenzui-services-Hunspell dictionaries; Enchant (libenchant-2.so.2) when present
secret-portalenzui-services-inside Flatpak, xdg-desktop-portal with a Secret backend
shell-integration (tray, launcher count)enzui-core-a StatusNotifierItem host for the tray

Distributions do not package pdfium as a shared library; the prebuilt libpdfium.so releases from the pdfium-binaries project work. Without it, pdf-preview reports a typed "libpdfium is not available" error instead of rendering.

Public fork dependencies

enzUI (github.com/enz1m/enzui) pins its public foundation forks (enzim-iced, enzim-wgpu, enzim-winit, enzim-cosmic-text, enzim-cryoglyph, enzim-accesskit, enzim-zbus) directly in Cargo.toml and Cargo.lock. No private mirror, vendor checkout or separate SDK installation is required.

The repository pins Rust 1.99.1 (rust-toolchain.toml) and supports Rust 1.95 or newer.

Check the install

From the repository root:

sh
git clone --branch v0.3.0-alpha.1 https://github.com/enz1m/enzui.git
cd enzui
cargo run --locked --example app

The sample notes workspace opens with the shared theme, sidebar, titlebar and appearance controls. Use Tab, Shift+Tab and Enter to navigate. To test with the software renderer:

sh
ICED_BACKEND=tiny-skia cargo run --locked --example app

Building and testing the workspace

The aliases in .cargo/config.toml keep every command on one feature set, so the whole stack builds once:

sh
cargo wcheck                          # every crate and target, all features
cargo wt --lib button                 # unit tests, filtered
cargo wt --test fields search_field   # one integration target, filtered
cargo wclippy                         # the lint gate (-D warnings)

Avoid cargo test -p <crate>: it resolves features for that crate alone and rebuilds the dependency stack beside the existing one. Tests render with the software backend by default (ICED_TEST_BACKEND=software).

For local API documentation:

sh
cargo doc --workspace --all-features --no-deps

Then open target/doc/enzui_widgets/index.html. The crate root carries the same widget catalog as Widget catalog.

Using enzUI from your own workspace

Use Git dependencies from the same enzUI tag or revision. The Alpha 0.3 dependency guide lists the matching iced revision and the [patch.crates-io] table for your workspace root. A local checkout is also supported.