Function build_data::set_GIT_COMMIT_SHORT [−][src]
pub fn set_GIT_COMMIT_SHORT()
Sets the GIT_COMMIT_SHORT
env variable.
Call this from build.rs
.
Use env!
in your main.rs
to use the variable.
Executes the git
command.
Example value: "a5547bf"
Panics
Panics if it fails to get the value from git
.