Skip to content
unDefFtrPublic

About

Rust-native host and bindings for RinUI (Qt Quick/QML)

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

A native Rust host for RinUI
built with Rust and Qt Quick
   English | 中文

Stars Stable Open-Source License Downloads

rinui-rs is an independent, reusable Rust / CXX-Qt 6 host for the Fluent-style Qt Quick (QML) components from RinUI. It replaces the Python/PySide6 runtime with Rust + C++/Objective-C++ while retaining upstream QML components and themes. The pinned upstream/Rin-UI submodule remains unmodified.

Explore RinUI's Fluent-inspired Qt Quick/QML controls through interactive samples, documentation, icons, and source links.

Screenshots

RinUI Gallery home

More screenshots...

RinUI Gallery icon library RinUI Gallery ColorPicker sample RinUI Gallery dark theme RinUI Gallery overview

The store link above opens the upstream RinUI Gallery (PySide version). Build this repository's Rust Gallery from source using the instructions below.

The image in the banner comes from Pixiv, PID: 125975786

Note

This repository is rinui-rs (0.1.0-alpha.2). The documentation layout is adapted from upstream RinUI; branding and selected screenshots have been updated for this repository.

Features

  • Elegant Fluent Design controls (WIP)
  • Dark and light mode, automatic switching
  • Compatible with original QML control names
  • i18n Internationalization
  • Native Rust / CXX-Qt host with no Python/PySide6 runtime
  • Embedded QRC and developer filesystem resource modes
  • Windows, macOS, and Linux platform integration
  • Theme system (WIP)
  • RinUI-rs documentation for Rust integration and QML components

🪄 Usage

Build with Rust (MSRV 1.88), a C++ toolchain, and Qt 6 with Qt5Compat and QtShaderTools. Set QMAKE to your Qt 6 qmake executable if it is not on PATH.

  • Windows: MSVC Build Tools 2022 and the Rust MSVC toolchain.
  • macOS: Xcode Command Line Tools. Apple Silicon with Xcode 26 and Qt < 6.11.1 also requires CXXFLAGS="-include arm_acle.h".
  • Linux: GCC/Clang, Qt's X11/Wayland development dependencies, and lld (or gold/mold) for linking.

Clone the repository with its upstream submodule, then run the Gallery:

git clone --recurse-submodules https://github.com/unDefFtr/rinui-rs
cd rinui-rs
cargo run -p rinui-gallery

# Developer mode: load QML from upstream/Rin-UI on each launch
cargo run -p rinui-gallery -- --dev

For an existing checkout, initialize the submodule with git submodule update --init --recursive.

Import RinUI in your QML file:

import RinUI

Add rinui-host = "0.1.0-alpha.2" to your application's [dependencies]. The crate bundles the native bridges and upstream QML, so applications can build without cloning the submodule. Use it to load your QML from Rust.

use rinui_host::{HostConfig, QmlSource, RinUIHost};
use std::process::ExitCode;

fn run() -> Result<i32, Box<dyn std::error::Error>> {
    let mut host = RinUIHost::new(HostConfig::default())?;
    host.load(&QmlSource::File("/path/to/your/file.qml".into()))?;
    Ok(host.exec())
}

fn main() -> ExitCode {
    match run() {
        Ok(code) => ExitCode::from((code & 0xFF) as u8),
        Err(err) => {
            eprintln!("error: {err}");
            ExitCode::FAILURE
        }
    }
}

See the Gallery host and engine configuration example for integration details. On macOS, the Gallery uses QML window controls by default; pass --upstream-mac-frame to opt into the native titlebar.

To test and build a release:

cargo test --workspace
cargo build --release -p rinui-gallery

Desktop packaging scripts are available for macOS, Windows, MSIX, and Linux.

Note

The upstream documentation describes RinUI's QML components and themes. Its Python/PySide installation and startup instructions apply to upstream RinUI; use the Rust host workflow above for this repository.

🙌 Acknowledgements

Resources

Contributors

Contributions are welcome through this repository's Issues and Pull Requests.

Thanks to the upstream RinUI author and contributors: Contributors

📜 License

This project is licensed under the MIT License, you can learn more about it in the license file.

Rust host code: Copyright © 2026 unDefFtr. Upstream RinUI and reused documentation/images: Copyright © 2025 RinLit. See THIRD_PARTY_NOTICES.md for third-party licenses.

rinui-rs is in Alpha. Suggestions and contributions are welcome. ❤️

About

Rust-native host and bindings for RinUI (Qt Quick/QML)

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages