1 2 3 4 5 6 7 8 9 10
// The file has been placed there by the build script. include!(concat!(env!("OUT_DIR"), "/built.rs")); pub(crate) fn version() -> String { format!( "{} ({})", PKG_VERSION, GIT_COMMIT_HASH_SHORT.unwrap_or("was built without git repository") ) }