core_crypto/
build_metadata.rs

1/// Metadata describing the conditions of the build of this software.
2pub struct BuildMetadata {
3    /// Build Timestamp
4    pub timestamp: &'static str,
5    /// Whether this build was in Debug mode (true) or Release mode (false)
6    pub cargo_debug: &'static str,
7    /// Features enabled for this build
8    pub cargo_features: &'static str,
9    /// Optimization level
10    pub opt_level: &'static str,
11    /// Build target triple
12    pub target_triple: &'static str,
13    /// Git branch
14    pub git_branch: &'static str,
15    /// Output of `git describe`
16    pub git_describe: &'static str,
17    /// Hash of current git commit
18    pub git_sha: &'static str,
19    /// `true` when the source code differed from the commit at the most recent git hash
20    pub git_dirty: &'static str,
21}
22
23/// Metadata describing the conditions of the build of this software.
24pub const BUILD_METADATA: BuildMetadata = BuildMetadata {
25    timestamp: env!("VERGEN_BUILD_TIMESTAMP"),
26    cargo_debug: env!("VERGEN_CARGO_DEBUG"),
27    cargo_features: env!("VERGEN_CARGO_FEATURES"),
28    opt_level: env!("VERGEN_CARGO_OPT_LEVEL"),
29    target_triple: env!("VERGEN_CARGO_TARGET_TRIPLE"),
30    git_branch: env!("VERGEN_GIT_BRANCH"),
31    git_describe: env!("VERGEN_GIT_DESCRIBE"),
32    git_sha: env!("VERGEN_GIT_SHA"),
33    git_dirty: env!("VERGEN_GIT_DIRTY"),
34};