Taffy 0.3: UI layout in Rust, now with css-grid!

This page summarizes the projects mentioned and recommended in the original post on /r/rust

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

    A high performance rust-powered UI layout library

  • The focus of the next Taffy release will likely be making Taffy easier to integrate with, which will include a refactor which allows it to be used to easily layout a single widget without expecting to be provided with the entire tree (which is all but required for a sensible Iced integration). A pull request containing the WIP refactor (which the current iced_taffy crate is based on can be found here: https://github.com/DioxusLabs/taffy/pull/326.

  • cosmic-text

    Pure Rust multi-line text handling

  • Expanding on the reply by nicoburns, I'd really like to see us use cosmic-text. Getting font loading, rendering, shaping and sizing right is a huge pain, and system76's solution is much nicer than anything that existed at the time the bevy_ui's approach was written.

  • 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
  • nativescript-mason

  • blitz

    High performance HTML and CSS renderer powered by WGPU (by DioxusLabs)

  • There hasn't been too much progress on Blitz in the last few weeks (it will come), but there is now a new project Freya which is using a Dioxus frontend and rendering with Skia. That's currently using it's own layout system instead of Taffy though.

  • freya

    Native GUI library for 🦀 Rust powered by 🧬 Dioxus and 🎨 Skia.

  • There hasn't been too much progress on Blitz in the last few weeks (it will come), but there is now a new project Freya which is using a Dioxus frontend and rendering with Skia. That's currently using it's own layout system instead of Taffy though.

  • parley

    Rich text layout library

  • Generally you'd use a UI framework that integrates Taffy, text layout, and a bunch of other plumbing into one toolkit. However, if you wanted to make such a thing yourself you would use a library like cosmic-text or parley

  • vello

    An experimental GPU compute-centric 2D renderer.

  • It seems like bevy is pretty committed to making it's own UI which uses bevy_ecs to store all the UI data, which Xilem is unlikely to adopt. However, the underlying renderer for Xilem (vello) does already have a bevy integration example, so it's likely that might be able to use Xilem with bevy as a 3rd-party package similar to the existing bevy_egui.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • iced_taffy

    Library for using Taffy layout with the Iced GUI framework. It currently provides a single Grid component for 2D grid layout.

  • Yeah, that's my crate (https://github.com/nicoburns/iced_taffy). It'll be seeing more attention now that the grid work is finally released, but it'll probably require the next Taffy release in order to be releasable to crates.io.

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

  • Looking for this. html + css rendering through wgpu.

    14 projects | /r/rust | 3 Jul 2023
  • Ebou Released 🚀: A (mostly full featured) cross platform desktop Mastodon client written in Rust + Dioxus

    5 projects | /r/rust | 16 Jun 2023
  • XUL Layout has been removed from Firefox

    18 projects | news.ycombinator.com | 1 Apr 2023
  • Declarative UI Programming in Rust for Native Applications

    6 projects | /r/rust | 30 Mar 2023
  • Looking for feedback on the next version of viewbuilder! The UI framework with a new a compose-like API

    2 projects | /r/rust | 21 Jan 2023