Deep Dive · Rust Tooling

egui, Iced, Tauri, GPUI: One Log Viewer, Four Answers to the Ownership Problem

Rust's GUI libraries look nothing alike because each made a different bet about who owns the state and who draws the pixels. The bet that matters most is not visible in the marketing: it is where the borrow checker stops protecting you.

Rust GUI libraries compared — video thumbnail
Video: Velum Theory 18:50 14 November 2026
Rust egui Iced Tauri GPUI

📄 The task 0:00

A backend writes a log that grows to a few million lines a day, a batch of payments fails overnight, and a text editor dies trying to open the file. So: a small desktop tool that opens it, searches it, and filters by level. Rust, because the searching has to be fast.

This is the right kind of example for a library comparison because the constraint that matters is not visual: it is that a search must sweep millions of lines without freezing the window, and that both ends of the pipeline — the scan and the rendering — happen in one process. Every library is judged against the same two requirements, so the differences that show up are architectural rather than cosmetic.
One note on the source: the names arrive in the audio mangled — "GPU I" is GPUI, "Dioxi" is Dioxus, "Xylem" is Xilem, "Rome 4" is Relm4, the Iced author is Héctor Ramón, and egui's creator is Emil Ernerfeldt. Corrected throughout; the video itself is accurate about the architecture.

🧩 The hard part of any GUI 0:55

"Every GUI library draws widgets and tells us when something happens to them. The harder job is keeping the screen in step with our data."
Easy partHard part
Drawing a widgetKnowing it must change when data changes
Reporting a clickRouting that click to exactly one place that may act on it
A widget treeA rule that says "when the search text changes, update the list"
Stating it this way is what makes the rest of the video land. The differences between these libraries are not stylistic preferences about syntax; they are four different answers to one question about data flow. That is also why comparing screenshots of example apps tells you nothing.

🔒 Why Rust fights the widget tree 1:24

Classic toolkit designWhat Rust's rule says
The window owns a panel, the panel owns a search box and a listFine — one owner for each value
Children often need a way back to their parentNow two parts point at the same thing
A callback changes the list the panel is also holdingMutating through a shared reference
Three places want the current filter textShared mutable state
The compiler is not being difficult; it is refusing a design that produces a specific family of bugs. The video puts it well: every value has one owner, others may borrow it — many at once to read, or one at a time to change. A widget tree with callbacks violates that in three separate ways, so it does not compile.
And the escape hatch has an honest price: you can share with reference counting and move the borrow check from compile time to runtime. The code compiles, becomes noisier, and if two parts mutate at once the program panics — while a user is using it. A GUI hitting a panic mid-session is worse than a compile error, which is exactly why the Rust GUI ecosystem exists in its current shape.

❓ Two questions 3:15

QuestionAnswers
Who draws the pixels?A web view the OS already ships — the interface is HTML and JavaScript in a desktop window
Candidates — the library draws to the GPU itself
What happens when data changes?Immediate mode — forget the screen and describe it again
Retained mode — keep widgets alive, patch what changed
In between — build a light description, diff it against the last one
Two questions that sort four libraries is a genuinely useful piece of teaching, and the mapping falls out cleanly: egui is immediate mode with self-drawn pixels; Iced is the diffing middle with self-drawn pixels; Tauri is the web view with an explicit state machine behind it; GPUI is a hybrid that owns state centrally and rebuilds an element tree per frame.

🔎 The question underneath the questions 0:00

The video asks who draws the pixels and what happens on change. There is a third question that predicted everything else, and it is the one worth carrying into a decision: where does the borrow checker stop protecting you?

LibraryWhere safety stopsWhat you get in exchange
eguiNowhere — data is read-only while drawingOne function, no callbacks, no stored widget references
IcedNowhere — a single mutation point per messageThe whole app's state transitions in one function
TauriAt the serialisation boundary to the web halfAny frontend skill you already have, plus mobile targets
GPUIAt the central app context that owns the entitiesCentral ownership with change notification, and 120 fps
GPUI's handles are the subtle one: your code never holds the data, it holds a ticket to ask a central context for the entity. That preserves the single-owner rule while giving you a way to reach data from anywhere — which is the same problem Rc<RefCell> solves, except the runtime owner is the framework rather than scattered cells. One owner, centrally, is much easier to reason about than many owners locally. It is also why the video's complaint about egui — logic spread across the drawing function — is the mirror image of GPUI's cost: you follow the framework's plan.

⚡ egui 4:43

PropertyDetail
CreatorEmil Ernerfeldt
ModelImmediate mode — the whole interface is one function that runs whenever the screen must be drawn
The one lineif ui.button("Save file").clicked() { save(file); } draws the button and answers whether it was clicked
StateYour own struct — open file, search text, chosen level; egui reads it while drawing and lets go
Window and GPUeframe, its official framework, drawing through wgpu
PortabilityThe same code compiles to WebAssembly and runs in a browser
Powereframe only redraws on an event or an explicit request, so an idle window costs almost nothing
Real productThe Rerun viewer, from the company Ernerfeldt co-founded
RepositoryAbout 32,400 stars, Apache-2.0
"Only redraws when something happens" answers the objection people raise first, and the project's own documentation is blunt on the trade: immediate mode is "easier to use, but less powerful". The reason is a layout paradox the video describes precisely — to centre a dialog you must know its size, to know its size you must lay out its contents, but laying out its contents also checks for clicks, which requires knowing where the dialog is. Retained mode escapes this by laying out first; immediate mode cannot, which is why centring and exact-width columns take extra work.
Two honest weak spots: the default look is a developer tool, and as the app grows — tabs, settings, a background loader — the code that mutates data ends up scattered through the drawing function. The first is cosmetic; the second is the reason to look at the next library.

🔄 Iced 7:14

PieceRole
StateOne struct holding everything the app knows
MessageAn enum of everything that can happen — text changed, level picked, file loaded
updateTakes one message; the only place in the program allowed to change state
viewReads state, returns a description of the screen, changes nothing
TaskBackground work that sends a message when it finishes, so loading arrives like a click
"This circle fits Rust's rule neatly because view only ever reads the state, and update is the single place that changes it."
The message log is the feature people underestimate. Because every change arrives as a value, you can record it and replay it — and Iced 0.14 made that literal with time travel debugging, alongside reactive rendering, headless mode testing and first-class end-to-end testing. The version shipped on 7 December 2025; the video summarises it as smarter redrawing plus test and debug tooling, which is accurate and slightly undersells it.
CostDetail
BoilerplateEvery user action needs a message; update grows with every feature
Pre-1.0Still 0.14 — new releases have required changes to existing code
DocumentationThe official guide is still being written; much learning comes from examples
Real-world proofSystem76's COSMIC desktop is built on libcosmic, which is built on Iced
A whole desktop environment on top of a pre-1.0 toolkit is the strongest evidence in the video, and it cuts both ways: the API churn is survivable when one organisation controls both the toolkit and its only massive consumer. If your team is not that organisation, budget for migrations — the "still not 1.0" line is a real cost, not a formality.

🧱 The wall both hit 10:12

egui and Iced draw every pixel themselves, so every widget, text box and chart must be written in Rust. If your team already builds web interfaces, or the chart you need only exists as a JavaScript library, that investment is unusable. This is not a criticism of either library — it is the boundary that makes the next two options worth existing.

🌐 Tauri 10:32

PlatformEngine used
WindowsWebView2, based on Microsoft Edge
macOSWKWebView, the engine inside Safari
LinuxWebKitGTK
AspectDetail
Two halvesA web page the user sees, and a Rust program behind it doing the work
BridgeCommands — Rust functions marked for exposure, called from the page through invoke, arguments and results serialised as text
Live updatesChannels, which keep sending data to the page in order
SizeInstalls in a few megabytes because the engine is already on the machine — Electron ships its own Chromium copy and is usually 100 MB or more, depending on the app
v2Stable 2 October 2024: iOS and Android from the same project, plus capabilities
CapabilitiesAn allow-list of commands and features per window; anything absent is blocked, so bad code in the page cannot read files you never granted
Capabilities are the most underrated security design in this comparison. Every other option here assumes the interface code is trusted; Tauri assumes the web half might be compromised and puts a typed allow-list between it and the filesystem. For a tool that opens a customer's log file, that is the difference between "the renderer has an RCE" and "the renderer has an RCE and cannot read anything".
Three costs, all real: three engines mean the same page can render slightly differently per platform, with WebKitGTK the usual source of complaints; every message crosses a serialisation boundary, so pushing two million log lines at once would make conversion the bottleneck — hence paging and a virtual list; and the part users look at is web code, which is precisely what one team decided they could not accept.
One thing the video leaves out: Tauri 3 is already in alpha — releases from October and November 2026 — so anyone starting a long-lived app today should plan for a version transition rather than assume v2 is the end state.

🎮 GPUI 13:38

The origin story explains the design. Several Zed founders, including Nathan Sobo, worked on Atom; Atom ran on Electron, and Electron was originally created for Atom. After years of trying to make Atom faster, they concluded an editor built on a browser engine cannot outrun that engine — so they wrote their own library, designed more like a video game than a web page.

PropertyDetail
TargetUp to 120 frames per second — the whole screen ready in a little over eight milliseconds
BackendsMetal on macOS, DirectX 11 on Windows, wgpu on Linux since early 2026
StateEntities owned by a central app context; your code holds a handle, not the data, and an entity can announce when it changes
FramesEach frame the main view rebuilds a tree of elements, described with chained calls — div, flex, gap, background — the style Tailwind users already know
LayoutTaffy computes the exact size and position of every box
The log-viewer featureA uniform list: if every row is the same height, measure one and derive the rest, drawing only what is on screen
MaturityZed reached v1.0.0 on 29 April 2026; the library is on crates.io
"Scrolling two million lines costs about the same as fifty" is arithmetic, not magic, and it is the single most transferable idea in the video: if rows are uniform, you never need to measure the list, only one row. Uniformity buys the optimisation. The moment rows have variable height it gets harder — which is why so many fast viewers impose fixed-height rows.
The name in the video has changed, and the component count is higher than stated. The Longbridge widget set is now longbridge/gpui-kit — about 21,200 stars — with gpui-component as one crate inside a kit that ships 75+ documented components, WebAssembly support, AccessKit accessibility and headless UI integration testing. The other reservations stand: it is written for Zed first, the API moves when Zed's needs move, documentation is thin, and screen-reader support trails older toolkits. Zed's own release cadence shows the churn — roughly thirty minor versions between v1.0 and November 2026, about four or five a month.

🗺 The rest of the map 16:42

LibraryBetStars
SlintIts own small declarative language, compiled into fast Rust; strongest on memory-constrained devices like a coffee machine or a dashboard24,700
DioxusFeels like React — components and hooks — rendering through a web view or an experimental native renderer39,900
XilemA long-running research project from Linebender, aiming for a reactive design that fits Rust's rules naturally5,600
GTK via gtk-rs, with Relm4 on topUse the classic Linux desktop toolkit from Rust2,000 (Relm4)
The four this video leads with get the attention, but the map is bigger and the choice is often not about the framework at all — it is about which ecosystem your team already speaks. Dioxus exists because React fluency is common; Relm4 exists because GTK applications are common; Slint exists because embedded screens are a different problem from desktop windows.

🧬 The shared substrate 17:32

CrateJobStars
winitOpening windows6,300
wgpuDrawing on the GPU18,600
TaffyComputing layout3,800
AccessKitDescribing widgets to screen readers1,600
"When one of these shared libraries fixes a bug or adds a feature, several GUI libraries improve at the same time, which helps explain how so many of them can survive side by side."
This is the most important economic observation in the video, and it reframes the usual complaint about too many Rust GUI libraries. They are not twenty competing full stacks; they are twenty different state-and-rendering strategies sharing four pieces of plumbing. That is why the ecosystem tolerates the duplication — and it also means a win in AccessKit or Taffy is a win everywhere, which is a better use of effort than another framework.

🎯 Picking one 17:58

If this is trueThen
A tool for your own team, working by tomorrowegui — immediate mode keeps the code short
Going to grow into a real application with many screens and several peopleIced — messages give every change one clear home
Your team writes web interfaces, or you need phonesTauri — keep those skills, keep Rust for the heavy work
The point is scrolling millions of lines without a stutter, and you accept following Zed's APIGPUI — it was built for exactly that
His rubric is honest because each answer names what you are giving up: speed of first version, discipline as the code grows, existing skills, or autonomy over your own roadmap. What it does not say, and should, is that the third row is a different kind of decision from the others — choosing Tauri means choosing a two-language architecture permanently, with a serialisation boundary you will spend real time on. It is not a Rust GUI library so much as a way to write a web app with a Rust backend.

✅ Claims checked

ClaimVerdictEvidence
egui is immediate mode, created by Emil ErnerfeldtCorrectRepository describes it as "a simple, fast, highly portable immediate mode GUI library"
In egui a button line both draws and reports the clickCorrectDocumented example: if ui.button("Save file").clicked() { save(file); }
eframe opens the window and draws through wgpu; the same code compiles to WebAssemblyCorrecteframe is the official framework, targeting web, Linux, macOS, Windows and Android
egui only redraws when something happensCorrect for eframeEvent-driven redraw with explicit requests
The Rerun viewer is built with eguiCorrectCited by egui's own README as a professional example
Immediate mode makes layout harderCorrect, and self-documentedegui's docs call immediate mode "easier to use, but less powerful" and explain the layout paradox
Iced is inspired by Elm: state, message, update, viewCorrectRepository description, and demonstrated in the video
Iced 0.14 shipped in December 2025 with smarter redrawing and testing/debugging toolsCorrect0.14.0 published 7 December 2025 — reactive rendering, time travel debugging, headless and end-to-end testing
Iced can fall back to tiny-skia without a usable GPUCorrecttiny-skia is the CPU renderer, with damage tracking
Iced has not reached 1.0Correct0.14 is the current release line
System76's COSMIC desktop is built on libcosmic, which is built on IcedCorrectCorroborated by Iced's own ecosystem references
Tauri uses the OS web view: WebView2, WKWebView, WebKitGTKCorrectPer-platform engines as described
Tauri v2 became stable in October 2024 with mobile support and capabilitiesCorrecttauri-v2.0.0 published 2 October 2024
Tauri apps are a few megabytes; Electron apps usually 100 MB or moreCorrect in the normal caseHe notes the real size depends on the app; Electron ships Chromium
WebKitGTK is where developers report the most problemsWidely reported; not independently measured hereConsistent with the ecosystem's known complaints
Tauri v2 is the current lineIncomplete — Tauri 3 is already in alphav3.0.0-alpha.4/.5/.6 published October–November 2026
Zed's founders came from Atom, and Electron was created for AtomCorrectNathan Sobo led Atom at GitHub
GPUI targets up to 120 fps, so a frame must be ready in a little over 8 msArithmetic is right1000 / 120 ≈ 8.3 ms
Metal on macOS, DirectX 11 on Windows, wgpu on Linux since early 2026Consistent with Zed's platform workNot independently re-verified per backend
Zed reached 1.0 in April 2026Correct — 29 April 2026v1.0.0 tag
A Longbridge project provides more than 60 ready-made widgetsUnderstated, and renamedNow longbridge/gpui-kit, about 21,200 stars, 75+ documented components, with gpui-component as one crate inside it
Slint, Dioxus, Xilem and gtk-rs/Relm4 round out the mapAll four exist as describedSlint 24,700★, Dioxus 39,900★, Xilem 5,600★ (Linebender), Relm4 2,000★
Many of them share winit, wgpu, Taffy and AccessKitCorrectAll four crates exist and are widely used by these frameworks

Basis note. Built from the full 18:50 video and checked against repository metadata, release tags and the projects' own documentation. Star counts were read at publication. The transcript mangles several proper nouns (GPUI, Dioxus, Xilem, Relm4, Héctor Ramón, Ernerfeldt); they are corrected here rather than transcribed. The observation about where the borrow checker stops protecting you, the capabilities-as-security point and the uniform-list generalisation are this article's.

🔑 Key takeaways

  • Rust's GUI diversity is a consequence, not a fashion: the classic widget tree with callbacks does not compile.
  • The escape hatch — shared mutable state — moves the failure from compile time to a panic in front of a user.
  • Two questions sort the field: who draws the pixels, and what happens when data changes.
  • Ask a third: where does the borrow checker stop protecting you? That is the real cost of each design.
  • egui wins on time-to-first-version because one function, one struct, and no callbacks eliminate the ownership problem.
  • But immediate mode cannot measure a group before placing it, so centring and exact widths cost extra — documented, not a rumour.
  • Iced's message log is worth its boilerplate: one mutation point, and a recording you can replay.
  • A pre-1.0 toolkit running a whole desktop is survivable only because one company owns both sides.
  • Tauri's capabilities assume your interface may be compromised — a typed allow-list between the web half and the filesystem.
  • Choosing Tauri means a permanent two-language architecture with a serialisation boundary you will maintain.
  • GPUI's handle-to-central-context is shared ownership with one owner, which is why it keeps Rust's rule and still allows 120 fps.
  • Uniform row heights are the trick behind fast lists: measure one row, derive the rest, draw only what is visible.
  • The frameworks share winit, wgpu, Taffy and AccessKit — so a fix there improves all of them at once.

🔗 Resources

Basis note. No sponsor content, no affiliate links. Version dates and star counts come from the repositories; the presenter's rubric is quoted rather than paraphrased where it matters, and the two places where his summary is out of date — Tauri 3's alpha line and the renamed, larger GPUI widget kit — are flagged in both the sections and the claims table.

⏱ Timestamp index

0:00A log too big for an editor
0:22Rust, because searching must be fast
0:29The pile of library names
0:46Different bets, not different syntax
0:55Keeping the screen in step with data
1:24The classic widget tree
1:45Callbacks reaching across the tree
2:05One owner, many borrows
2:25Why it does not compile
2:37The runtime-checked escape hatch
2:54A panic while the user is working
3:15Question one: who draws the pixels
3:31Question two: what happens on change
4:02Immediate mode
4:11Retained mode
4:25The diffing middle
4:43egui, by Emil Ernerfeldt
5:03One line draws and reports
5:21All state in one struct
5:37eframe and wgpu
5:49Compiled to WebAssembly
5:55Does redrawing waste power
6:10The afternoon prototype
6:26Rerun's data viewer
6:36Can't measure before placing
6:56The developer-tool look
7:06Logic spread across drawing
7:14Iced, from Elm
7:28State
7:41Messages as an enum
7:54update, the only mutator
8:03view, read-only
8:09Typing a letter, step by step
8:33Why the circle fits Rust
8:43Replaying messages
8:49Tasks for slow work
9:06wgpu, with tiny-skia fallback
9:18Version 0.14 and its tooling
9:33System76 and COSMIC
9:51The cost: boilerplate
10:00Not yet 1.0, thin guide
10:12Everything has to be written in Rust
10:32Tauri answers question one differently
10:50WebKitGTK on Linux
10:52Two halves
11:08Versus Electron's bundled Chromium
11:32Commands and invoke
12:04The split suits the log viewer
12:13Channels for live lines
12:22v2: mobile and capabilities
12:48Trade-offs: engine divergence
13:03Serialisation cost
13:11Two million lines at once
13:21Paging and virtual lists
13:38Zed, and why they left Electron
14:02GPUI, designed like a game
14:12120 fps, an eight-millisecond budget
14:36Entities, app context, handles
15:08Building an element tree per frame
15:21Chained styles, Tailwind-like
15:34Taffy does the layout
15:41The uniform list
15:55Two million lines for the cost of fifty
16:04Zed 1.0 in April 2026
16:12The Longbridge widget set
16:19Written for Zed first
16:33Screen-reader support behind
16:42Slint
17:04Dioxus
17:14Xilem and Linebender
17:23GTK from Rust, and Relm4
17:32The shared crates underneath
17:58Choosing for the log viewer
18:10When it will grow
18:23When the team writes web
18:34When nothing may stutter
☰ View all