async_ui
rust-signals
async_ui | rust-signals | |
---|---|---|
7 | 6 | |
549 | 588 | |
- | - | |
8.4 | 4.5 | |
about 2 months ago | 26 days ago | |
Rust | Rust | |
Mozilla Public License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
async_ui
-
A Proposal for an asynchronous Rust GUI framework
I'm very interested in seeing if using the commonly implemented forms of compiler support for async programming can also be well used for GUI programming. One wishawa[0] is also perusing this approach in Rust but I first came upon this idea from the crank-js[1] authors. It wasn't clear to me why that one never went anywhere. Was it failure with the approach or was React just a good solution in the space? I can say this though, there's something strikingly elegant about those initial samples of using JavaScript generators for components.
[0]: https://github.com/wishawa/async_ui
[1]: https://github.com/bikeshaving/crank
Not OP, but... I'd argue that async style event handling is even more readable then the traditional way of using callbacks. Take a look at this counter example in Async UI (a project I've been working on that's very similar to what OP purposes); my event handlers are all in the same place, and my state (the value variable) is a regular variable; no reactivity primitive needed.
-
What is the "idiomatic" approach to events/callbacks?
If you are doing ui events, then you can have a look at wishawa/async_ui.
-
Show HN: Async UI: A Rust UI Library Where Everything Is a Future
Only in small examples. This doesn't look that much like SwiftUI to me: https://github.com/wishawa/async_ui/blob/main/examples/web-t...
- Async UI: a Rust UI Library where Everything is a Future
rust-signals
-
A Proposal for an asynchronous Rust GUI framework
What is the relation and differences between this approach and rust-signals?
-
A good/decently matured rxjs-based library?
Signals is a fantastic and stable library for reactive programming https://github.com/Pauan/rust-signals
-
A first look at Sycamore's new reactive primitives: how the next version of Sycamore will be the most ergonomic yet
How does this approach differ from rust-signals? https://github.com/Pauan/rust-signals
-
Announcing avalanche 0.1, a React- and Svelte-inspired GUI library
You might want to check out dominator and the rust-signals it is based on, seems like a similar technique to avalanche.
-
Crate similar to Kotlin Flow?
Maybe try futures-signal? I think its API looks quite nice and it even has a tutorial.
-
Rust on the front-end
Both are signal-based, which seems like the way to go to me. The latter seems more mature in terms of code, but also lacking in good documentation. The rust-signal crate it uses though has a nice tutorial from which a lot of concepts seem to transfer.
What are some alternatives?
Caliburn.Micro - A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
rust-dominator - Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!
molecule - Build a StateFlow stream using Jetpack Compose
sycamore - A library for creating reactive web apps in Rust and WebAssembly
crank - The Just JavaScript Framework
salsa - A generic framework for on-demand, incrementalized computation. Inspired by adapton, glimmer, and rustc's query system.
MoonZoon - Rust Fullstack Framework
sycamore-mac
composePPT - An experimental UI toolkit for generating PowerPoint presentation files using Compose
differential-dataflow - An implementation of differential dataflow using timely dataflow on Rust.
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
avalanche - Rust library for building performant Web apps