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
12,669 downloads per month
Used in 25 crates
(23 directly)
2MB
46K
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 = "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