QMetaObject crate for Rust VS Azul

Compare QMetaObject crate for Rust vs Azul and see what are their differences.

QMetaObject crate for Rust

Integrate Qml and Rust by building the QMetaObject at compile time. (by woboq)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
QMetaObject crate for Rust Azul
20 26
600 5,810
2.5% 0.6%
6.5 7.1
about 2 months ago 2 months ago
Rust Rust
MIT License Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

QMetaObject crate for Rust

Posts with mentions or reviews of QMetaObject crate for Rust. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-05.
  • 9 years of Apple text editor solo dev
    4 projects | news.ycombinator.com | 5 Jan 2024
    You can use Rust with QML[1].

    QML is actually pretty amazing. I've been building my block editor[2] view entirely in QML while the model is in C++. This separation of logic and presentation works great. And yes, there are some crashes sometimes (that I find quite easy to debug thanks to the built-in debugger), but take for example a similar app that's built with Rust and Dart[3], in my testing there were still memory leaks that caused my computer to hang. It's better to know you have a bug than for it to be hidden from you.

    I agree with parent commenter, saying these cross-platform frameworks will end up supporting the least common denominator set of features. But I found with external open source libraries, the community is catching up very fast. For example, you want the awesome translucency macOS apps have for your Qt app? Here you go[4]. Many such cases. It's also pretty straightforward to add your own custom OS-dependent code, especially so, if someone already open sourced his approach. I recently wanted to move the traffic light buttons on macOS for my app, but couldn't figure the Objective-C code for that. I ended up looking at either Tauri or Electron source code and found my answer.

    [1] https://github.com/woboq/qmetaobject-rs

    [2] https://www.get-plume.com/

    [3] https://www.appflowy.io/

    [4] https://github.com/stdware/qwindowkit

  • I like rust but want to use Qt.
    8 projects | /r/rust | 11 Dec 2023
    I just used qmetaobject-rs and my experience with Qt/QML. There's the QML book from Qt if you're just starting, which is pretty nice https://www.qt.io/product/qt6/qml-book
  • GUI development with Rust and GTK 4
    15 projects | news.ycombinator.com | 25 Apr 2023
  • Made my first app in Rust! A notification daemon for Linux :)
    9 projects | /r/rust | 29 Aug 2022
    qmetaobject is probably the most mature Qt Rust binding at the moment. It uses the cpp crate to embed C++ inline in Rust to create its bindings. There are some people using it and it does get some maintenance, but it's not under active development since the original author is now working on Slint.
  • QT for Rust?
    1 project | /r/rust | 15 Apr 2022
  • Using KConfig with Rust
    2 projects | dev.to | 14 Mar 2022
    The bindings currently use the git version of qttypes since I had to merge some upstream changes that are needed for these bindings. So they are not ready for prime time just yet.
  • CXX-Qt: safe Rust bindings for Qt
    9 projects | news.ycombinator.com | 2 Mar 2022
    There are a bunch of bindings with different language, but even the ones that are officially supported like PySide will still be second class citizen and awkward to use.

    Automated binding generation will never give you idiomatic API in whatever language. And if you want an idiomatic library that wraps Qt, it's going to take a huge amount of work.

    Which is why I think restricting to QML makes sense because that's a much smaller API surface. That was the ambition behind my previous crate that exposes QML to rust: https://github.com/woboq/qmetaobject-rs/

    But now I've moved on to another GUI project: Slint https://github.com/slint-ui/slint

  • Why does Rust code compile into a single executable binary?
    3 projects | /r/rust | 9 Feb 2022
    Whisperfish does this with Qt: https://github.com/woboq/qmetaobject-rs/issues/102
  • Announcing Gyroflow - an advanced video stabilization tool written in Rust with GPU acceleration and cross-platform UI
    6 projects | /r/rust | 4 Feb 2022
    What do you want to know? It's pretty easy thanks to the amazing work of guys behind qmetaobject-rs.
  • Using KI18n with Rust and Qml
    1 project | dev.to | 6 Nov 2021
    This is probably the portion that I found the most difficult. The README of qmetaobject-rs gives us a basic idea of the build script, so I started with that. Here is my starting script

Azul

Posts with mentions or reviews of Azul. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-03.
  • AvaloniaUI: Create Multi-Platform Apps with .NET
    13 projects | news.ycombinator.com | 3 Feb 2024
    Not sure what you mean but WebRender powers Firefox which definitely works on the desktop.

    You can use it to build desktop UI frameworks - see for example https://azul.rs/

  • Servo, the parallel browser engine written in Rust
    11 projects | news.ycombinator.com | 27 May 2023
    I'd been wanting to see this, preferably with JS being optional, and just allowing direct DOM access.

    I initially thought this was what Azul was, but it's only just using Servo's WebRender compositor, and rolls its own CSS parser, DOM, and layout engine, so it doesn't benefit from most of the work done on Servo, and supports less CSS features.

    https://github.com/fschutt/azul

  • Is RUST a good choice for building web browsers?
    6 projects | /r/rust | 27 May 2023
    Both Servo and Fifefox make use of webrender, which is an awesome piece of tech and is well suited to render a web page. Some GUI projects attempted to use webrender directly as well, like Azul and moxie-native
  • Digital Audio Workstation Front End Development Struggles
    16 projects | news.ycombinator.com | 15 May 2023
    > But no one is saying, "Hey I have a CSS 2.1 compliant rasterizer and compositor that you can use in your C++ or Rust environment!" are they?

    There’s actually quite a lot of interesting work going on in that general space, has been in various forms for some years. A couple that immediately spring to mind:

    • Azul <https://azul.rs/> builds on WebRender, as used in Firefox. I haven’t looked at it for a few years, but it looks to have grown quite interesting now.

    • Blitz <https://github.com/DioxusLabs/blitz> is based on from-scratch implementations of CSS layout and rendering, and wgpu rendering. It’s not usable yet, but is a very interesting concept. If one happens to be familiar with React Native: it’s kinda like that, or React Native Web.

  • XUL Layout has been removed from Firefox
    18 projects | news.ycombinator.com | 1 Apr 2023
    Azul[1] was my solution for that, it was based on WebRender. I didn't get around to finish it in 2019, but I will work on it this year, maybe I'll get it to be mature enough to post it here.

    > wide portability (at least Windoze, Linux, MacOS, iOS, Android, embedded: Azul is Windows-Linux-Mac only, don't underestimate the effort to properly port something to a new platform

    > "though a Vulkan-based renderer can be made to run pretty much anywhere": WebRender is OpenGL + using software rendering as a fallback

    > a permissive open source license: MPL-2.0

    > a C interface/wrap to allow a wide programming language binding support: yes

    > and an easily extensible and themable set of basic widgets: also yes

    [1] https://azul.rs/

  • Rust GUI framework
    16 projects | /r/rust | 8 Feb 2023
    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.
  • Servo 2023 Roadmap
    1 project | /r/rust | 4 Feb 2023
    Sounds like you may be interested in azul not exactly servo based but on projects that originate from servo. Also this is not a typical WebView, for example it does not use HTML but uses DOM to define it's UI, and there is no JS engine in there.
  • Help with webrender.
    1 project | /r/rust | 1 Jan 2023
    Azul uses webrender. But your "glue" program is like half the web browser. You also need a vector graphics library to render websites. Webrender only does boxes, but not complex SVG paths. Once the plan was to use pathfinder, but mozilla fired the dev and they still using an old version of chromium's skia for that.
  • Rust: State of GUI, December 2022 – KAS blog
    15 projects | news.ycombinator.com | 14 Dec 2022
    One day I'll get around to finish my library Azul [1]. Hopefully.

    [1] https://azul.rs/

  • Pure Rust GUI Landscape
    8 projects | dev.to | 24 Nov 2022
    azul

What are some alternatives?

When comparing QMetaObject crate for Rust and Azul you can also consider the following projects:

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]

conrod - An easy-to-use, 2D GUI library written entirely in Rust.

slint - Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.

wxRust - A Rust binding of the wxWidgets cross platform toolkit.

gtk - DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!

Rust Qt Binding Generator git - Generate bindings to use Rust code in Qt and QML

orbtk - The Rust UI-Toolkit.

ritual - Use C++ libraries from Rust

Native Windows GUI - A light windows GUI toolkit for rust

relm - Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust