DEEIX-AI/cpui
Developer ToolsApp developmentA Rust immediate-mode desktop UI framework that renders entirely on the CPU, with 40+ widgets and cross-platform support.
Overview
CPUI is a native UI framework for Rust desktop applications that draws its whole interface on the CPU, so no GPU is required. It targets developers building Rust desktop apps who need native widgets and want predictable memory use, and it uses an immediate-mode API where the interface is a function of application state: widgets return results at the call site, and if ui.button("Save").clicked() is a complete click handler (3).
The framework compiles to machine code with no browser or script runtime; windows, input methods, clipboard, file dialogs and accessibility go through the operating system's own interfaces. Layout and appearance use chained methods such as .p(24).gap(12), and themes are named color and size sets with light/dark variants. More than 40 widgets are available, including sortable multi-select tables, trees, virtual lists, searchable selects, date and color pickers, dialogs, sheets, menus and toasts (3).
Quick start
Requires Rust 1.89 or newer. Add the crate to Cargo.toml:
[dependencies]
cpui = "0.1.1"
A minimal counter app implements App and calls cpui::run:
use cpui::{App, Options, Ui};
#[derive(Default)]
struct Counter {
count: u32,
name: String,
}
impl App for Counter {
fn ui(&mut self, ui: &mut Ui<'_>) {
ui.column().p(24).gap(12).children(|ui| {
ui.heading(format_args!("Clicked {} times", self.count));
if ui.button("Click").primary().clicked() {
self.count += 1;
}
ui.text_input(&mut self.name).placeholder("Name");
ui.progress((f64::from(self.count) / 10.0).min(1.0)).w(200);
});
}
}
fn main() -> Result<(), cpui::Error> {
cpui::run(Options::default(), Counter::default())
}
Running it opens a native window with the heading, button, text input and progress bar. The getting-started guide walks through the first application step by step.
To explore the component set, run one of the bundled examples from the repository:
cargo run --release -p cpui --example hello
cargo run --release -p cpui --example gallery
cargo run --release -p cpui --example catalog
hello shows basic controls, gallery shows every widget adapting to window width, and catalog lists one widget per row. Other examples cover a 100,000-row virtual list, canvas animation, icons, theming and multi-window apps (3). Components can also be browsed live with code and options at cpui.io/components, and built-in icons at cpui.io/icons.
Platform support
macOS 13, Windows 10 and Linux (glibc 2.28) are verified platforms. iOS 16 and Android 8 (API 26) are experimental and verified only in the simulator/emulator (10). The roadmap tracks further platform work.
Constraints
The project is at version 0.1, the first release series, so versioning and compatibility guarantees are still early; the versioning guide describes what is promised. Rendering is CPU-only, which keeps requirements low but means the framework does not use GPU acceleration. Mobile targets are experimental rather than production-ready. Layout, theming, internationalization, custom widgets and packaging are documented separately in the official guides, including packaging and distribution. The icon set ships as a separate dependency-free crate, cpui-icons, exposing each icon as geometry or SVG for use with any renderer (13). Licensed under Apache-2.0 (37); the renderer was split out from Winc (38).
HotRepo's take
On the HotRepo new-project board for Rust on 2026-11-30, CPUI recorded 104 stars and 4 new stars in a growth window of roughly 1.5 hours, with forks unchanged. That is a single short snapshot of an early 0.1 release, enough to show initial attention but not a trend. The more substantive signal is technical: a CPU-only renderer with a 27 MB idle window and a measured 0.1 ms full frame at 800×600 is a deliberate niche choice that appeals to Rust developers who want native desktop apps without GPU assumptions.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- MasterKPG/rust-glassRust immediate-mode GUI framework that GPU-renders Liquid Glass widgets with refraction, blur and spring animation.
- vivaui/vivaBuild native Go desktop apps that render through each OS's own window and GPU APIs, without a WebView or bundled runtime.
- emilk/eguiA GUI library for Rust developers who need any interface at all, especially inside games and tools.
- oneo-me/nsgoWrite cross-platform apps in Go while each platform renders them with its own native views.
- longbridge/nshA Rust-built native UI framework where apps and screens are written in TSX or Rust and rendered with each platform's own views.