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
999 downloads per month
Used in 2 crates
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