Skip to content

Installation ​

Requirements ​

  • Rust 1.95 or newer (edition 2024). This repository pins 1.97.1 in rust-toolchain.toml; use that toolchain when you also run the crate's tests.
  • Linux needs the usual egui/winit development packages (libxkbcommon, libwayland, libx11, libxi, libxcursor, libxrandr, libgl1-mesa, and Vulkan drivers for the test harness).
  • A GPU or software renderer supported by eframe's Glow backend.

Add the dependency ​

toml
[dependencies]
egui-workbench = "1.0"

Python ​

bash
pip install egui-workbench

The wheel includes the native host; no Rust toolchain is needed. See the Python guide for widgets, events, threads, asyncio, and data.

Theme Studio and global ​

The theme editor, VS Code import/export, Fluent localization, font loading, and the accessibility report are described in the Theme Studio and global guide.

Extensions ​

toml
[dependencies]
egui-workbench-extensions = "1.0"

The sandboxed WebAssembly runtime, manifest, capabilities, manager view, and examples are in the Extensions guide.

Chemistry plugins ​

toml
[dependencies]
egui-workbench-chem2d = "1.2"   # 2D structure editor
egui-workbench-mol3d = "1.2"    # 3D molecular and crystal viewer

egui-workbench-chem-core comes in through either one. The library does not depend on them. They are described in the Chemistry plugins guide.

Agents ​

bash
cargo install egui-workbench-agent

The MCP server, permission model, automation driver, and DevTools are in the Agents and DevTools guide.

Web and remote ​

bash
npm install egui-workbench

The npm package is the WebAssembly host, the createWorkbench ESM wrapper, and the TypeScript types generated from the schema. The remote server and C ABI are in the Web and remote guide.

For the declarative host (spec, patches, protocol, sidecar), add the separate crate:

toml
[dependencies]
egui-workbench-host = "1.0"

Or follow the repository's main branch:

toml
[dependencies]
egui-workbench = { git = "https://github.com/jigonzalez930209/egui-workbench" }

Features ​

FeatureDefaultWhat it embeds
lucide-iconsyes2,410 Lucide SVGs (ISC), about 1 MB; every icon name is available to buttons, menus, tabs, and tree rows.
material-iconsyesThe VS Code Material Icon Theme (MIT), about 5 MB; resolves file and folder names to full-color icons.
plotyesPlot, its chart families, legend animations, and SVG/PNG export.
plot3dyesPlot3D and Series3D. Implies plot.
vieweryesThe file viewer, ViewerRegistry, JSON/YAML/TOML trees, Markdown, and PNG/JPEG.
csvyesThe CSV/TSV data connector.
workbookyesThe spreadsheet connector (calamine; implies viewer).
ringyesThe in-memory ring-buffer connector.
channelyesThe channel/socket/serial snapshot connector.
arrownoArrow IPC connector.
parquetnoParquet connector (implies arrow).
sqlitenoSQLite connector (rusqlite).
gpunoGPU line/scatter data layer through egui_wgpu. Implies plot.
serdeyesStable event names and Serialize/Deserialize for component state and events.
svgyesThe resvg/usvg rasterizer. Icon packs and plot enable it; a minimal build with neither pays for no rasterizer.

Disable Material when the application never shows files, or build a smaller binary with only the pieces it uses:

toml
[dependencies]
egui-workbench = { version = "1", default-features = false, features = ["lucide-icons", "serde"] }

One copy of egui ​

The crate builds on egui and eframe 0.37 from crates.io, with no patches or forks. It re-exports both, so the simplest setup depends on nothing else:

rust
use egui_workbench::{eframe, egui};

If your application also lists egui or eframe directly, keep them on the same 0.37 minor version; Cargo then resolves a single copy. Two different minors compile, but the types do not match (egui::Ui from one is not the other's).

The library forbids unsafe and denies missing_docs, unwrap_used, expect_used, panic, unimplemented, todo, and unreachable. The generated application copies the same policy:

toml
[lints.rust]
unsafe_code = "forbid"
missing_docs = "deny"

[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unimplemented = "deny"
todo = "deny"
unreachable = "deny"

Start from the template ​

The fastest install is the generator, which already contains the dependency, the lints, and a compiling application.

With cargo-generate installed, no checkout is needed:

bash
cargo install cargo-generate
cargo generate --git https://github.com/jigonzalez930209/egui-workbench \
  --subfolder templates/app --name my-app
# prompts for the title; leave the workbench path empty to use crates.io
cd my-app
cargo run

From a checkout of this repository, cargo xtask new does the same without the extra tool and points the dependency at the checkout:

bash
git clone https://github.com/jigonzalez930209/egui-workbench
cd egui-workbench
cargo xtask new ../my-app --title "My App"
cd ../my-app
cargo run

Continue with Quick start. To wire the library manually, continue with Build your first app.

Released under MIT OR Apache-2.0. Icons: Lucide (ISC) and Material Icon Theme (MIT).