tablo-ui 0.8.0

The Topcoat components Tablo renders: primitives synced from topcoat-ui-registry, plus its own composites.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    // Stage the Lucide icon set for `iconify_icon!` in primitives (ADR-0007). The set is vendored
    // in `assets/iconify` with its version sidecar, so staging copies committed files into
    // OUT_DIR and needs no network access.
    topcoat::icon::iconify::BuildConfig::new()
        .icon_set_version("lucide", "1.2.137")
        .cache_dir("assets/iconify")
        .stage()
        .unwrap();
    // The components carry Tailwind classes, so an app's stylesheet must scan
    // these sources. `links` hands their absolute path to the build script of
    // every package that depends on this one, as `DEP_TABLO_UI_SRC`, wherever
    // Cargo unpacked the crate; `tablo_build::tailwind` reads it.
    let dir = std::env::var("CARGO_MANIFEST_DIR").expect("cargo sets CARGO_MANIFEST_DIR");
    println!("cargo::metadata=src={dir}/src");
}