//! Build-time identity of this binary. //! //! The version comes from `SM121_VERSION` at compile time: the add-on CI passes //! it as a Docker build arg, the builder stage exports it, and `build.rs` writes //! it into `OUT_DIR/build_version.rs` (so a warm cargo cache cannot keep the old //! literal). A plain `cargo build` reports `dev`. include!(concat!(env!("OUT_DIR"), "/build_version.rs")); /// The version baked in at build time (`dev` for a local build). pub fn version() -> &'static str { VERSION } #[cfg(test)] mod tests { use super::version; #[test] fn version_is_never_empty() { assert!(!version().is_empty()); } }