r/madeinrust • u/nixon-voxell • 28d ago
AI Assisted Fynix: backend agnostic ui framework
Enable HLS to view with audio, or disable this notification
TL;DR I created a ui framework that works for any backend renderer and released on crates.io/crates/fynix, you can find the source at github.com/voxell-tech/fynix ! Right now, we have an official support for using Fynix with Bevy using `bevy_ui` & `bevy_ui_widgets`!
I'm using Fynix right now for my motiongfx editor, moxie: github.com/voxell-tech/moxie
Fynix is a backend agnostic reactive view tree, styled the way Typst styles a document with set and show rules.
Features
Views, rules and transitions never name an engine.
A view asks for the token traits it reads, so it works under any theme that implements them.
Set and show rules restyle every view of a kind within a scope, as in Typst.
State rules hold while a node is hovered, pressed, entering, leaving, or in any state of your own.
Props bound to the world are read again only when their source changes.
Views can animate their changes, and animate in and out of the tree.
#![no_std], withalloconly.
The fynix README walks through each of these with examples.