Skip to main content

Crate aura_build

Crate aura_build 

Source
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§

AssetPaths
Where the bundled widgets and fonts were written, and how the Slint compiler must be configured to resolve @aura and font imports.

Enums§

CompileError
Errors from compile.

Functions§

compile
Compile slint_entry (relative to the caller’s CARGO_MANIFEST_DIR) with the AURA widget library and font include path.
materialize_assets
Write the bundled @aura widgets and fonts into dir/aura-build/{ui,fonts} and return the compiler configuration pointing at them.