Function build_data::set_SOURCE_EPOCH_TIME [−][src]
pub fn set_SOURCE_EPOCH_TIME()
Sets the SOURCE_EPOCH_TIME
env variable.
Call this from build.rs
.
Use env!
in your main.rs
to use the variable.
Example value: "1618370707"
Panics
Panics if SOURCE_DATE_EPOCH
env var is set to a non-integer value.
Panics if it fails to get the timestamp from git
.