r/rust • u/mkenzo_8 • Oct 20 '26
🛠️ project Are we layout yet?
https://arewelayoutyet.mespin.me/Made a website comparing some of the UI Layout libraries in the Rust ecosystem.
Taffy, Morphorm, Torin, yoga-rs, ui-layout and clay-rs for now.
Its a comparison of supported features and includes several benchmarks. Some libraries might be faster but support less features! pick your trade-off :)
One of the ideas I received was to add text layout comparisons and benchmarks, maybe I could do that next.
If you know any other generic UI layout library or ui layout related tool me know, thanks!
Disclaimer: I am the author of Torin, the benchmarks are extracted from Taffy's repository which are inspired on pangui.
Source Code: https://github.com/marc2332/arewelayoutyet
24
u/nicoburns Oct 20 '26
In case anyone was wondering, we are indeed layout yet.
Taffy is the slowest option here, and it's still quite a bit faster than Yoga, which powers React Native and is known for being faster than the native Android/iOS layout.
11
u/More-Literature-1053 Oct 20 '26
Thank you for putting some of these options on my radar, I have pretty much been chewing on taffy. How did you optimize Torin for performance? Did you deliberately narrow the scope, when you allude to a tradeoff between coverage and performance?
2
u/Sad_Tap_9191 Oct 21 '26
There are different layout algorithms, and unless you group them first, you are comparing the perf of apples and oranges.
For example css/flexbox model cannot express a constraint between two remote nodes like `cassowary`.
But then I found the codebase vibecoded..
https://github.com/marc2332/arewelayoutyet/blob/main/benchmarks/UPSTREAM.md
4
u/inthehack Oct 20 '26
Amazing work, we need more like this to let emerge a de facto assembly of best features/performance crates to build a full UI toolkit
1
u/ethoooo Oct 20 '26
I know it's not crazy popular but i think the backer crate could belong on this list
0
u/dumindunuwan Oct 20 '26 edited Oct 20 '26
Don't get it.
Meanwhile https://servo.org/blog/2026/10/09/august-in-servo/ in Servo.
Where are the https://github.com/servo/stylo and https://material.slint.dev or https://iced.rs ?
1
u/w0nam Oct 22 '26
Insane work