Function build_data::set_GIT_COMMIT

source ·
pub fn set_GIT_COMMIT()
Expand description

Sets the GIT_COMMIT env variable.

Call this from build.rs. Use env! in your main.rs to use the variable.

Executes the git command.

Example value: "a5547bfb1edb9712588f0f85d3e2c8ba618ac51f"

§Panics

Panics if it fails to get the value from git.