Cotton code
11 lines · 602 B · RustRaw
//! **ONE JOB: notice when the app's version changes.**//!//! [`crate::HOST_VERSION`] is `option_env!("COTTON_HOST_VERSION")`, which the//! Mac's packaging lane sets from `CFBundleShortVersionString`. Cargo records//! an `env!`/`option_env!` read in the unit's dep-info and rebuilds when it//! changes — this line says so OUT LOUD anyway, because the failure mode is a//! helper silently shipped with the previous release's number stamped into it,//! which is the exact class of bug this crate spent 2026-09-22 on.fn main() {    println!("cargo:rerun-if-env-changed=COTTON_HOST_VERSION");}