taut 0.1.0

A Rust GUI library for Windows and Linux that aims to be small, fast and accessible, with zero dependencies and nothing compiled in that your program doesn't use.
Documentation
  • Coverage
  • 100%
    1015 out of 1015 items documented9 out of 357 items with examples
  • Size
  • Source code size: 8.6 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 66.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 29s Average build duration of successful builds.
  • all releases: 48s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Dvow/taut
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Dvow

taut

A GUI library for Rust on Windows and Linux with no dependencies: no crates, no graphics card, no web view. One function describes the window from the app's state; the library draws only what changed, and nothing while nothing happens.

Windows 11 Linux (X11)
The demo window on Windows: a table of five thousand files, sorted by size The demo window on Linux, with its colour picker open

A first program

[dependencies]
taut = "0.1"
use taut::Window;

fn main() {
    let mut presses = 0;
    let window = Window { title: "Hello", width: 320.0, height: 160.0, ..Default::default() };
    taut::run(window, move |ui| {
        ui.column().pad(16.0).gap(10.0).open();
        ui.label(&format!("Pressed {presses} times"));
        presses += ui.button("Press").clicked as u32;
        ui.close();
    });
}

The function runs when something happens. Open a box, describe its content, close it. A part takes &mut to what it changes and returns what the user did.

Why taut

  • Small: the program above is 457 KB on Windows, 758 KB on Linux (iced 5.9 MB, Slint 7.8 MB, egui 8.3 MB). Only the parts called are compiled in.
  • No dependencies: 0 crates (iced 159, egui 179, Slint 245). No GPU needed.
  • Fast: a 1,000-row window is described and redrawn in 172 µs (one frame: Dear ImGui 244 µs, egui 6,114 µs). Idle costs nothing.
  • Accessible: full keyboard use; screen readers through UI Automation and AT-SPI.
  • Tested: over 1,100 tests on Windows 11, Ubuntu and Arch Linux; every interface test checks partial against full redraw, pixel for pixel; every parser of outside data is fuzzed.

At a glance

  • Systems: Windows; Linux on X11 or Wayland. Not macOS, iOS, Android or the web yet.
  • Rust: 1.88+. Licence: MIT or Apache-2.0.
  • Features (all off by default): right-to-left, brahmic, emoji, fallback-fonts, touch, cff, woff2, color-profiles (costs).
  • State: 0.1. Names may change before 1.0 (changes, what is missing).

Examples

cargo run --example <name>:

Example What it is
hello the program above
gallery most parts, on nine pages (the pictures above)
todo a to-do list kept in a file (built in chapter 4 of the book)
files a file browser: folder tree, sortable table
editor a text editor: tabs, find and replace, menus
settings a settings window that follows the system's light or dark
chat a message list that stays at its end
viewer a viewer for PNG, JPEG, GIF, WebP, BMP, ICO and SVG
dashboard tiles, live charts, a table
nodes a node editor on a pan-and-zoom board
report a chart and text, saved as PDF or printed
tray a tray icon, notifications, a global hotkey
desktop a whole desktop drawn into a pixel buffer
picture an interface drawn into a PNG, no window
d3d11, opengl, vulkan the interface over the program's own renderer
overlay the library in a DLL with a C interface
bench the timings

book, walk and walk_reader are the library's own tools (book pictures, demo measurements).

Beside other Rust libraries

A label and a button, built for size on Windows, 2026-11-15:

taut egui iced Slint
Program 457 KB 8.3 MB 5.9 MB 7.8 MB
Other crates 0 179 159 245
Drawn by CPU GPU GPU, or CPU GPU, or CPU
Screen readers own (UI Automation, AT-SPI) AccessKit none in 0.14 AccessKit

More libraries, and Dear ImGui part by part.

Documentation

Licence

MIT or Apache-2.0, at your option (LICENSE-MIT, LICENSE-APACHE). Unicode, HarfBuzz and Brotli data: THIRD-PARTY.md.

Contributions are taken under the same terms, unless you state otherwise.