inject_git_version

Function inject_git_version 

Source
fn inject_git_version(root: &Path) -> Result<()>
Expand description

Injects the git version string into the generated Rust documentation HTML.

cargo doc embeds the crate version from Cargo.toml. This function replaces that static version with the output of git describe so that documentation built from a dirty working tree or a non-tagged commit shows the exact revision.