34 releases (22 stable)

new 1.9.1 Dec 21, 2024
1.8.0 Sep 23, 2024
1.7.1 Jul 25, 2024
1.5.1 Mar 20, 2024
0.2.1 Mar 10, 2022

#899 in GUI

Download history 8915/week @ 2024-08-31 9580/week @ 2024-09-07 11321/week @ 2024-09-14 12324/week @ 2024-09-21 12791/week @ 2024-09-28 11543/week @ 2024-10-05 10211/week @ 2024-10-12 12499/week @ 2024-10-19 10252/week @ 2024-10-26 13910/week @ 2024-11-02 2391/week @ 2024-11-09 2193/week @ 2024-11-16 2695/week @ 2024-11-23 2906/week @ 2024-11-30 3323/week @ 2024-12-07 3400/week @ 2024-12-14

12,669 downloads per month
Used in 25 crates (23 directly)

GPL-3.0-only…

2MB
46K SLoC

Rust 36K SLoC // 0.0% comments Slint 11K SLoC // 0.0% comments

This crate serves as a companion crate of the slint crate. It is meant to allow you to compile the .slint files from your build.rs script.

The main entry point of this crate is the [compile()] function

Example

In your Cargo.toml:

[package]
...
build = "build.rs"

[dependencies]
slint = "1.9.0"
...

[build-dependencies]
slint-build = "1.9.0"

In the build.rs file:

fn main() {
slint_build::compile("ui/hello.slint").unwrap();
}

Then in your main file

slint::include_modules!();
fn main() {
HelloWorld::new().run();
}

Dependencies

~20–29MB
~430K SLoC