nordisk/facett
facet-wrapped/examples/manifest.rs
//! Print the component manifest as JSON on stdout.
//!
//! The build pipeline runs this on the HOST (no wasm toolchain, no browser) and writes
//! the output next to the wasm artifact, so a loader can enumerate components without
//! instantiating the module first.
fn main() {
let manifest = facet_wrapped::Registry::with_builtins().manifest_json();
println!("{}", serde_json::to_string_pretty(&manifest).expect("manifest serialises"));
}