12 releases

0.3.5 Feb 21, 2023
0.3.3 Dec 16, 2022
0.3.2 Nov 28, 2022
0.2.5 Jul 6, 2022
0.2.1 Mar 10, 2022

#403 in GUI

Download history 327/week @ 2022-11-27 566/week @ 2022-12-04 177/week @ 2022-12-11 224/week @ 2022-12-18 146/week @ 2022-12-25 90/week @ 2023-01-01 124/week @ 2023-01-08 97/week @ 2023-01-15 165/week @ 2023-01-22 223/week @ 2023-01-29 157/week @ 2023-02-05 134/week @ 2023-02-12 215/week @ 2023-02-19 141/week @ 2023-02-26 504/week @ 2023-03-05 126/week @ 2023-03-12

999 downloads per month
Used in 2 crates

GPL-3.0-only…

1MB
26K SLoC

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 = "0.3.5"
...

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

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

~23MB
~390K SLoC