Skip to main content

long_version

Function long_version 

Source
pub fn long_version(git_info: &str) -> String
Expand description

Multi-line --version report whose first line is the caller-supplied build stamp ({version}+{sha}[.dirty] from the root build script, or the bare crate version). The stamp is a parameter — not option_env! — because cargo:rustc-env never crosses package boundaries, so only the root crate can read what its own build script sets. Keep the stamp to a single token: the desktop updater parses this first line strictly.