@jpgilldev / steid

steid/build.rs
718 BRaw
1//! Build-time asset generation.
2//!
3//! Two steps: Tailwind over `styles.css`, and staging the Iconify sets that components
4//! reference. Topcoat wraps the standalone Tailwind CLI — no Node, no PostCSS. The
5//! generated CSS lands in `OUT_DIR` and is served by the asset bundler with a
6//! content-hashed URL.
7
8fn main() {
9 topcoat::tailwind::BuildConfig::new()
10 .input("styles.css")
11 .render()
12 .unwrap();
13
14 // `feather` is what the copied-in `select` component draws its chevron from.
15 // Icons are staged at build time and embedded, so nothing is fetched at runtime.
16 topcoat::icon::iconify::BuildConfig::new()
17 .icon_set("feather")
18 .stage()
19 .unwrap();
20}