embala-setup 0.8.0

Windows setup.exe builder — appends a payload overlay onto a prebuilt runtime stub, no compile
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Prebuilt stubs are build products, not committed (see `just stubs`). Fail
//! the build with an actionable message instead of a raw `include_bytes!` error.

fn main() {
    for stub in [
        "stubs/x86_64-pc-windows-gnu/setup-stub.exe",
        "stubs/aarch64-pc-windows-gnullvm/setup-stub.exe",
    ] {
        println!("cargo::rerun-if-changed={stub}");
        assert!(
            std::path::Path::new(stub).exists(),
            "prebuilt stubs are generated, not committed: run `just stubs` (dev shell) to create crates/embala-setup/stubs/**"
        );
    }
}