Function build_data::set_BUILD_HOSTNAME[][src]

pub fn set_BUILD_HOSTNAME()

Sets the BUILD_HOSTNAME env variable, with the hostname of the machine executing the build.

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

Calling this will make your build non-reproducible.

Example value: "builder2"

Executes the hostname command.

Panics

Panics if it fails to get the timestamp from hostname.