kanade 0.43.56

Admin CLI for the kanade endpoint-management system. Deploy YAML manifests, schedule cron jobs, kill running jobs, revoke commands, publish new agent releases — over NATS + HTTP
// See crates/kanade-agent/build.rs for the rationale.

// See crates/kanade-agent/build.rs for the cfg-gate rationale.

#[cfg(target_os = "windows")]
fn main() {
    let mut res = winres::WindowsResource::new();
    res.set("ProductName", "kanade");
    res.set("FileDescription", "Kanade admin CLI");
    res.set("OriginalFilename", "kanade.exe");
    // Shared kanade brand icon — see crates/kanade-agent/build.rs for the
    // repo-root path + the exists()-guard rationale (Gemini #628).
    let icon = "../../assets/icon.ico";
    if std::path::Path::new(icon).exists() {
        println!("cargo:rerun-if-changed={icon}");
        res.set_icon(icon);
    }
    if let Ok(v) = std::env::var("CARGO_PKG_VERSION") {
        res.set("ProductVersion", &v);
        res.set("FileVersion", &v);
    }
    if let Err(e) = res.compile() {
        println!("cargo:warning=winres compile failed: {e}");
    }
}

#[cfg(not(target_os = "windows"))]
fn main() {}