druid
piet
Our great sponsors
druid | piet | |
---|---|---|
59 | 11 | |
9,359 | 1,224 | |
1.0% | 2.0% | |
4.0 | 5.3 | |
about 2 months ago | 8 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
druid
- Druid – A data-first Rust-native UI toolkit
-
What can rust do
For GUI applications, the story is mixed. There are several GUI frameworks in active development, but nothing as polished and battle-tested as Electron for TypeScript. There are bindings to GTK, but they're cumbersome to work with, and I wouldn't recommend it to a Rust newbie. There's also Tauri, which is a bit like Electron and lets you write the GUI in HTML/CSS/JS and the business logic in Rust.
-
Do Rust and Lua work well together?
Concerning GUI frameworks, the most common ones are druid, egui and iced. All three of them run native and on the Web.
-
What was the hardest coming from C++ to Rust?
Going to give a shoutout to druid. I've recently tried it with the Lapce editor and it's just so smooth, fast and works so well for a pre-alpha app.
-
What GUI libs are out there and good to use?
As iced and egui were difficult for me, i started with druid.
-
Rust GUI framework
There is Iced which is used by system76 in Pop!_OS, Druid [DISCONTINUED], GTK-rs, Relm, Azul and Tauri. Personally I would use Tauri for its speed using the OS's native web render, documentation of use with things such as Sveltekit and the ability to make UI's using JS, CSS and HTML. Tauri similarly to Electron whilst being far faster. But its up to personal preference really. There aren't any solid "go to" options at the moment.
-
What do people use for simple UI projects?
Druid should be good for most cases, it has a lot of built-in widget for the UI, you can even make a custom widget with a canvas-alike painting API.
-
Druid, a Rust-native UI toolkit, released v0.8 after two years of work by 80 contributors.
Druid, which is a Rust-native UI toolkit for building desktop applications targeting Windows/macOS/Linux/OpenBSD/FreeBSD, has a new version out - v0.8.
-
Ergonomic APIs for hard problems (RustLab 2022 keynote)
There's a memoize View node in the previous iteration of the Xilem prototype, but it hasn't made it in to the current branch yet. That sounds like what you're asking, but it's possible I'm missing something.
-
Dioxus: User interfaces that run anywhere
You can use GTK from Rust. But the Rust native ones aren't really there yet. [Iced](https://github.com/iced-rs/iced) which has been picked up by System76 and [Druid](https://github.com/linebender/druid) (and it's next gen version [Xilem](https://github.com/linebender/xilem)) are the ones to watch, along with Dioxus which is the main post here.
I'd expect there to be something useable by the end of 2023.
piet
- Cairo – Open-Source 2D Graphics Layer/API with Fonts and Many Back-Ends
-
A simple 2d graphic library
You can even check https://github.com/linebender/piet and https://github.com/RazrFalcon/tiny-skia. They are pure rust libraries. Skia as a whole is a big binary to add.
-
Druid, a Rust-native UI toolkit, released v0.8 after two years of work by 80 contributors.
First, at the deepest level, we are moving away from Piet, which is a cross-platform 2D graphics abstraction. Under the hood it uses whatever the standard OS API is. Instead we will be using Vello which we have been building as a research project for years already. It is starting to near its v0.1, which is very exciting. Fundamentally it is a novel GPU accelerated 2D rendering engine with a strong focus on performance. It is not ready for benchmarks yet, but we're confident it will deliver. If you're curious, you can check out the Vello roadmap for 2023.
-
What 2D graphics library would you most recommend?
you can use piet, although that is more of an abstraction over existing, platform-dependent libraries. So not really pure rust, but definitely cross-platform.
-
Piet-GPU Progress: Clipping
Piet is the backend for the Druid UI framework. It is indeed cross-platform. The SVG backend looks like it would work without an OS, but I'm not sure the value of a GUI toolkit without an OS anyway :)
https://github.com/linebender/piet#backends
https://github.com/linebender/druid/tree/master/druid-shell/...
-
Looking for an image manipulation library that can add text to images. (and has documentation for it)
Piet can render text. You can use Piet_common with the BitMapTarget to generate images Here is an example.
-
Simple graphics library using software rendering?
Piet (https://github.com/linebender/piet) should work.
-
What Graphics Library to use?
So the 3 I'm looking at right now are 1. druid 1. piet 1. bevy
-
Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)
It relies on piet 2D graphic library; on Linux that means GTK/Cairo 2D primitives
-
Patrick Walton heading up Facebook's Rust team
You may be interested in taking a look at piet!
What are some alternatives?
iced - A cross-platform GUI library for Rust, inspired by Elm
embedded-graphics - A no_std graphics library for embedded applications
egui - egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
areweguiyet - A website built for the Rust community
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
gtk - DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
orbtk - The Rust UI-Toolkit.
Azul - Desktop GUI Framework
vgtk - A declarative desktop UI framework for Rust built on GTK and Gtk-rs
Slint - Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++ or JavaScript. [Moved to: https://github.com/slint-ui/slint]