QMetaObject crate for Rust VS femtovg

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

QMetaObject crate for Rust

Integrate Qml and Rust by building the QMetaObject at compile time. (by woboq)

femtovg

Antialiased 2D vector drawing library written in Rust (by femtovg)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
QMetaObject crate for Rust femtovg
20 32
599 741
2.3% 1.9%
6.5 7.7
about 2 months ago 12 days ago
Rust Rust
MIT License GNU General Public License v3.0 or later
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

femtovg

Posts with mentions or reviews of femtovg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-06.
  • Recommended UI framework to draw many 2D lines?
    5 projects | /r/rust | 6 Mar 2023
    Femtovg (https://github.com/femtovg/femtovg) which uses OpenGL to render
  • tinydraw 0.1.1
    2 projects | /r/rust | 16 Feb 2023
    Congrats! I don't want to diminish the accomplishment, but have you seen femtovg? It seems like it's probably well-aligned with your needs.
  • Bevy vector graphics library?
    3 projects | /r/bevy | 27 Sep 2022
    I'm currently using femtovg for vector graphics in my games, and I would like to get into bevy by porting one of my game prototypes using it to bevy.
  • Decision paralysis: ggez or macroquad
    4 projects | /r/rust_gamedev | 9 Jul 2022
    I use femtovg It's a simple vector graphics engine having all the important features you probably want from a 2D rendering engine: simple shapes, images, text
  • femtovg VS lyon - a user suggested alternative
    2 projects | 21 May 2022
  • Keeping POWER relevant in the open source world
    9 projects | news.ycombinator.com | 22 Jan 2022
    https://github.com/femtovg/femtovg/pull/5

    Before Power10 was done, IBM actually asked us Raptor users about proposals for useful machine code instructions to add to it. I replied that I’d like to have hardware UTF-8 de-/encoding but they wanted a more detailed proposal and I never got around to write it. I’m not even sure that this would be worthwhile, but I see UTF-8 de-/encoding everywhere in the code I write and would like it to approach memory read/write speeds.

    I was very disappointed to learn that they had gone more proprietary with Power10 so I would not have been able to use those instructions anyway. What a pity!

  • How to use a Rust WebAssembly module in Svelte with Web Workers
    1 project | /r/sveltejs | 29 Nov 2021
    In my actual code, I'm using a library called femtovg that is a Rust port of a C library for 2D rendering. But In the blog post I kept the example simple to keep it relevant for people who might want to use Web Workers + WASM for other things; didn't want to get hung up on femtovg for someone who had never heard of it. As you say, if you all you need to do is basic 2D manipulations of a canvas that are supported by the native API, then you likely don't need WASM.
  • Iced: A cross-platform GUI library for Rust, inspired by Elm
    19 projects | news.ycombinator.com | 27 Aug 2021
    You guys should also check out the femtovg project, a 2D rendering API that sixty fps relies on.

    https://github.com/femtovg/femtovg

    It's a decent starting point for trying to build your own toolkit.

    I have recently added a wgpu backend but for now it lives in my fork https://github.com/adamnemecek/femtovg

    run the demo with `cargo run --example wgpu_demo --release`.

    Also join the femtovg discord https://discord.gg/V69VdVu

  • Any recommended resources for beginning graphics with Rust
    2 projects | /r/rust | 22 Jul 2021
    I'm involved with the femtovg project. We are definitely looking for contributors. Join the discord channel.
  • Good GUI toolkit/library recommendations needed
    7 projects | /r/rust | 18 Jul 2021
    It's not a GUI framework but I'm involved with this project called femtovg, it's a Rust nanovg port. I've recently added a wgpu backend. Run the demo with cargo run --example wgpu_demo --release. Some people have been using it for their own UIs, e.g. tuix. I think that you should consider rolling your own GUI toolkit, it's not that bad and you'll appreciate the control.

What are some alternatives?

When comparing QMetaObject crate for Rust and femtovg 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]

glium - Safe OpenGL wrapper for the Rust language.

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

Typesense - Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

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

gdnative - Rust bindings for Godot 3

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

ritual - Use C++ libraries from Rust

NanoGUI - Minimalistic GUI library for OpenGL

Azul - Desktop GUI Framework

nuklear - A single-header ANSI C immediate mode cross-platform GUI library