~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs

0
0
main
6 lines · 415 B Raw History
// The bindings: examples/rust/compose's module.json (a module directory; an atlibs.lock.json works too).
fn main() {
    println!("cargo:rerun-if-changed=../rust/compose/module.json");
    let code = atlibs_compose::codegen::generate(&["../rust/compose".as_ref()]).unwrap_or_else(|e| panic!("{e}"));
    std::fs::write(std::path::Path::new(&std::env::var("OUT_DIR").unwrap()).join("modules.rs"), code).unwrap();
}