/// The tag and Git commit ID the program was built from, or a pre-defined value from config.h if
/// there is no Git directory.
The tag and Git commit ID the program was built from, or a pre-defined value from config.h if
there is no Git directory.
The tag and Git commit ID the program was built from or a pre - defined value from config . h if there is no Git directory .
pub fn program_version() -> String {
    // GIT_HASH is set by this crate's build script, "build.rs"
    if let Some(version_str) = option_env!("GIT_HASH") {
        version_str.to_string()
    } else {
        format!(
            "{}.{}.{}",
            env!("CARGO_PKG_VERSION_MAJOR"),
            env!("CARGO_PKG_VERSION_MINOR"),
            env!("CARGO_PKG_VERSION_PATCH")
        )
    }
}
pub fn program_version ( ) -> String { // GIT_HASH is set by this crate's build script, "build.rs" if let Some ( version_str ) = option_env ! ( " " ) { version_str . to_string ( ) } else { format ! ( " " env ( " " ) env ( " " ) env ( " " ) ) } }
The tag and Git commit ID the program was built from, or a pre-defined value from config.h if
there is no Git directory.
The tag and Git commit ID the program was built from or a pre - defined value from config . h if there is no Git directory .