Expand description
Build-script helper for AURA plugins with a Slint GUI.
Wraps slint_build::compile_with_config and pre-fills the AURA bits —
the @aura widget library path and the include path that lets .slint
files import "JetBrainsMono-Regular.ttf"; etc.
ⓘ
// build.rs
fn main() {
aura_build::compile("ui/main.slint").unwrap();
}In .slint:
import { Knob, Meter, AuraTheme } from "@aura";
import "JetBrainsMono-Regular.ttf";
// colors: AuraTheme.surface / .primary (Material 3 dark tokens)Structs§
- Asset
Paths - Where the bundled widgets and fonts were written, and how the Slint
compiler must be configured to resolve
@auraand font imports.
Enums§
- Compile
Error - Errors from
compile.
Functions§
- compile
- Compile
slint_entry(relative to the caller’sCARGO_MANIFEST_DIR) with the AURA widget library and font include path. - materialize_
assets - Write the bundled
@aurawidgets and fonts intodir/aura-build/{ui,fonts}and return the compiler configuration pointing at them.