Show HN: Async UI: A Rust UI Library Where Everything Is a Future

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • async_ui

    Lifetime-Friendly, Component-Based, Retained-Mode UI Powered by Async Rust

    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...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rui

    Declarative Rust UI library

  • sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)

    >But can you share more on what you need Tokio for?

    Because everything. uses. Tokio. It's become the defacto standard of async Rust, whether people like it or not.

    This issue has been notable enough to cause some projects to outright consider dropping async-std support - and I think they only relented because there's apparently enough (private, not-open-source) users who apparently still use it.

    (https://github.com/launchbadge/sqlx/issues/1669)

    (Note that they also have a note about async-compat not exactly being an ideal solution and that they'd be looking into writing their own)

  • 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.

    The programming model reminds me of Rob Eisenberg's older attempts at building UI toolkits ([0]). I don't recall if that was fully async or 'just' using a coroutine/generator-style approach, but it feels similar.

    I'm not sure the complexity of doing everything using async constructs is worth it, though. Large-scale UI's built in Qt or Javascript are mostly single threaded anyway, but it's still worthwhile to explore so kudos for that. Looking forward to seeing how far you get.

    [0] https://github.com/Caliburn-Micro/Caliburn.Micro

  • molecule

    Build a StateFlow stream using Jetpack Compose (by cashapp)

    Today in "HN never used a reactive framework that is not React and is offended when UI is not written with Dear ImGui".

    This is literally the exact style of SwiftUI and Jetpack Compose (down to the author having used the term fragment, I sure hope this isn't leftover trauma from being an Android developer), except written in Rust (hence having to deal with lifetimes in the middle, default parameters, lambdas being quite verbose and needing to move things, etc).

    Not blocking the UI thread is mandatory if you ever want to make any kind of complex UI. If you're a web dev, well you only have one thread anyways, good luck, if you're on any other platform, interactions _cannot_ ever block the UI (unless you, yourself, update the UI to say it is blocked). Making this async is a good thing.

    Stack traces are a problem, but then again they've been a problem in any remotely capable UI toolkit.

    With ReactiveCell, it looks surprisingly similar to what Compose does, where modifying a State causes recomposition of everything observing it. Which means that it might be powerful enough one day to do the same things as Molecule (https://github.com/cashapp/molecule), or ComposePPT (https://github.com/fgiris/composePPT), where everything is a potential target and it interops really well with existing toolkits.

  • composePPT

    An experimental UI toolkit for generating PowerPoint presentation files using Compose

    Today in "HN never used a reactive framework that is not React and is offended when UI is not written with Dear ImGui".

    This is literally the exact style of SwiftUI and Jetpack Compose (down to the author having used the term fragment, I sure hope this isn't leftover trauma from being an Android developer), except written in Rust (hence having to deal with lifetimes in the middle, default parameters, lambdas being quite verbose and needing to move things, etc).

    Not blocking the UI thread is mandatory if you ever want to make any kind of complex UI. If you're a web dev, well you only have one thread anyways, good luck, if you're on any other platform, interactions _cannot_ ever block the UI (unless you, yourself, update the UI to say it is blocked). Making this async is a good thing.

    Stack traces are a problem, but then again they've been a problem in any remotely capable UI toolkit.

    With ReactiveCell, it looks surprisingly similar to what Compose does, where modifying a State causes recomposition of everything observing it. Which means that it might be powerful enough one day to do the same things as Molecule (https://github.com/cashapp/molecule), or ComposePPT (https://github.com/fgiris/composePPT), where everything is a potential target and it interops really well with existing toolkits.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • A tale of TimescaleDB, SQLx and testing in Rust

    1 project | dev.to | 2 May 2024
  • SQLX MSSQL Connection String Problem

    1 project | /r/rust | 6 Jul 2023
  • Introducing SQLPage : write websites entirely in SQL

    8 projects | /r/rust | 4 Jul 2023
  • SQLx 0.7 released! Offline mode usability improvements, performance fixes and major upgrades across the board!

    6 projects | /r/rust | 3 Jul 2023
  • MariaDB / SQLx - "Unknown Authentication Plugin"

    1 project | /r/rust | 19 Jun 2023

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?