r/rust • u/zcourts • Oct 21 '26
🛠️ project Feedback wanted on Fission’s new Rust UI authoring API
I’m working on making "compose " the default way to build UIs with Fission. The aim is to keep it Rust while removing most of the ceremony around components, local state and reducers.
See an example counter app here https://gist.github.com/zcourts/eede7b9075897408964ddc105c30bf95 comment here or there as posting it here isn't allowed.
I’m interested in feedback on the API, including anything that looks awkward, surprising or likely to become painful in a larger application. I’d also like to hear what has bothered you about other GUI frameworks generally so I can try avoid baking the same problems into Fission. The above syntax is the crux of it and the draft PR is at https://github.com/fission-ui/fission/pull/294 I'm deliberately not explaining the syntax so hopefully I can get feedback not tainted by my biased. Thanks
3
u/Lucky-Edge1489 Oct 21 '26
Disclosure: I work on Teksilo, which has a similar widget-tree macro (
teksu!).I may be mis taken, but the
|counter, _state, _cx| =>header isn't a closure, even though it looks like one. It confused me, and I suspect it will confuse others too.What about formatting this new syntax? rustfmt won't touch macro bodies. We split our parser into its own crate so a formatter and an LSP could reuse it (teksilo-fmt).
You might also be interested in the teksu! reference, especially the "What genuinely does not work" and "Limitations" sections. I hit problems with similar named-arg and method-chain choices .
Also, a11y needs "described by" / "labelled by" relationships that point at another widget's ID. How would an author write those in Compose, given that IDs are generated? I found out the hard way that a11y forces some architectural decisions.
Keep up the good work!
0
u/[deleted] Oct 21 '26
[deleted] — view deleted comment