ethportal_api/
version.rs

1pub const APP_NAME: &str = "trin";
2
3/// The latest git commit hash of the build.
4pub const TRIN_FULL_COMMIT: &str = env!("VERGEN_GIT_SHA");
5pub const TRIN_SHORT_COMMIT: &str = env!("VERGEN_GIT_SHA_SHORT");
6
7/// Trin's version is the same as the git tag.
8pub const TRIN_VERSION: &str = env!("TRIN_VERSION");
9
10/// The operating system of the build, linux, macos, windows etc.
11pub const BUILD_OPERATING_SYSTEM: &str = env!("TRIN_BUILD_OPERATING_SYSTEM");
12
13/// The architecture of the build, x86_64, aarch64, etc.
14pub const BUILD_ARCHITECTURE: &str = env!("TRIN_BUILD_ARCHITECTURE");
15
16// /// The version of the programming language used to build the binary.
17pub const PROGRAMMING_LANGUAGE_VERSION: &str = env!("VERGEN_RUSTC_SEMVER");
18
19pub const FULL_VERSION: &str = env!("TRIN_FULL_VERSION");
20
21/// Returns the trin version and git revision.
22pub const fn get_trin_version() -> &'static str {
23    TRIN_SHORT_COMMIT
24}