Fusuma

Rust UI toolkit

One interface toolkit, from an ESP32 to your desktop.

Fusuma is a native Rust toolkit for microcontrollers, RISC-V chips, desktop and mobile. No webview, no HTML, no CSS. Renderers on Vello, tiny-skia and plain integer drawing, so the same app fits the board it runs on.

View on GitHub crates.io Early development

fusuma showcase · light
The showcase in its light theme
fusuma showcase · dark
The showcase in its dark theme
Runs onESP32-C6ESP32-S3ESP32-P4RISC-VDesktop GPUDesktop CPU
4renderers, one trait
no_stdfits a microcontroller
0webviews, HTML or CSS
MITlicence

Why Fusuma

Native, all the way down

No webview, no HTML, no CSS. A retained widget tree, layout, theme tokens, focus and animation, painted straight through a renderer.

Fits a microcontroller

The toolkit is no_std and allocator-light. Turn off the default features and it fits an ESP32-C6 or another RISC-V chip.

One trait, many renderers

Every backend implements the same Renderer trait and passes the same conformance suite, so a scene draws the same picture on each.

A default chosen for the hardware

fusuma-platform reads the screen and the chip (RAM, PSRAM, FPU, GPU) and picks a renderer, with overrides and a reason for its answer.

Animation built in

Easing, tweens, keyframes, springs and fling decay in fixed point, so motion behaves the same on a chip without an FPU as on a desktop.

Layers that stay clean

A renderer crate never depends on a toolkit crate. A firmware that only draws gets no toolkit code, and CI checks it.

Write once, draw anywhere

Apps add one crate, fusuma, a facade over the toolkit and the renderer you choose. Each backend is a cargo feature; with default-features = false it is no_std.

src/lib.rs
use fusuma_render::{Color, Rect, Renderer};

fn card<R: Renderer>(r: &mut R) -> Result<(), R::Error> {
    r.clear(Color::rgb(16, 18, 24))?;
    r.fill_rect(Rect::new(8, 8, 120, 64), 12, Color::rgb(40, 46, 60))
}

See it

Buttons in the Fusuma showcase
Buttons
Switches, sliders and checkboxes in the Fusuma showcase
Controls
Tabs, a gauge and a room list in the Fusuma showcase
A small climate app

The showcase, drawn by Fusuma itself, in its sumi (dark) and washi (light) looks. Every page, or run it in your browser.

Renderers

Several renderers pass the same conformance suite. A device uses the default that fits its hardware, and the others stay available. Each crate is useful alone.

lightestrichest
  1. 1

    fusuma-render-embedded

    Integer drawing for small displays.

    The lightest. Chips that must keep their RAM free.

  2. 2

    fusuma-render-skia

    Anti-aliased drawing on tiny-skia.

    3 to 4 times faster and lighter than vello_cpu on a chip without an FPU, measured on the ESP32-C6.

  3. 3

    fusuma-render-vello-cpu

    Anti-aliased drawing on vello_cpu.

    The richest CPU renderer. A chip with PSRAM, or a machine without a GPU.

  4. 4

    fusuma-render-vello

    Anti-aliased GPU drawing on vello_gpu and wgpu.

    Desktop and anything with a usable GPU.

Platforms

Status follows the roadmap.

Open the door.

Read the roadmap, try the showcase, or add fusuma to a project.

Fusuma on GitHub