shadow_build_info/lib.rs
1// https://github.com/rust-lang/rfcs/blob/master/text/2585-unsafe-block-in-unsafe-fn.md
2#![deny(unsafe_op_in_unsafe_fn)]
3
4// this exposes information from the build script so that shadow can access it
5
6pub const BUILD_TIMESTAMP: &str = env!("SHADOW_TIMESTAMP");
7
8pub const GIT_COMMIT_INFO: Option<&str> = option_env!("SHADOW_GIT_COMMIT_INFO");
9pub const GIT_DATE: Option<&str> = option_env!("SHADOW_GIT_DATE");
10pub const GIT_BRANCH: Option<&str> = option_env!("SHADOW_GIT_BRANCH");