pub fn format_version(package_version: &str, facts: Option<&GitFacts>) -> StringExpand description
The version to show. package_version is Cargo’s version; facts is
None outside a git checkout (crates.io packages, Docker contexts without
.git), which gives the plain version.