1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) TribuFu. All Rights Reserved.

#![allow(non_snake_case)]

/// The version of the engine.
pub const ALNILAM_VERSION: &str = env!("CARGO_PKG_VERSION");

/// The target triple that is being compiled for.
pub const TARGET_TRIPLE: &str = env!("VERGEN_CARGO_TARGET_TRIPLE");

/// The LLVM version of the Rust compiler.
pub const LLVM_VERSION: &str = env!("VERGEN_RUSTC_LLVM_VERSION");

/// The version of the Rust compiler.
pub const RUSTC_VERSION: &str = env!("VERGEN_RUSTC_SEMVER");

/// The release channel of the Rust compiler.
pub const RUSTC_CHANNEL: &str = env!("VERGEN_RUSTC_CHANNEL");

/// The git commit hash of the Rust compiler.
pub const RUSTC_COMMIT: &str = env!("VERGEN_RUSTC_COMMIT_HASH");

/// The current cargo build profile.
pub const CARGO_PROFILE: &str = env!("VERGEN_CARGO_PROFILE");

/// The timestamp that has been compiled.
pub const BUILD_TIMESTAMP: &str = env!("VERGEN_BUILD_TIMESTAMP");

#[cfg(test)]
mod Tests {
    use super::*;

    #[test]
    fn GetVersion() {
        assert_eq!(ALNILAM_VERSION, env!("CARGO_PKG_VERSION"));
    }
}