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
38
39
40
41
42
43
44
45
46
47
48
49
//! This module gives the build and version information about the library.
//!
//! # Usage
//!
//! ```rust
//! use randomorg::version::*;
//!
//! println!("Crate info:\n\tVersion: {}\n\tAuthors: {}\n\tName: {}\n\tHome page:
//! {}\n\tDescription: {}",
//! CRATE_VERSION,
//! CRATE_AUTHORS,
//! CRATE_NAME,
//! CRATE_HOMEPAGE,
//! CRATE_DESCRIPTION);
//!
//! println!("Build info:\n\tCommit: {} of {}\n\tTarget: {}\n\tGit version: {}
//! \n\tFeatures: {}\n\tProfile: {}",
//! SHA,
//! BUILD_TIMESTAMP,
//! TARGET_TRIPLE,
//! SEMVER,
//! build::features(),
//! build::profile());
//! ```
/// Commit SHA hash
pub const SHA: &str = env!;
/// Build timestamp.
pub const BUILD_TIMESTAMP: &str = env!;
/// Built for this target triple.
pub const TARGET_TRIPLE: &str = env!;
/// Semantic version.
pub const SEMVER: &str = env!;
/// Contains build information about the library, taken from build environment.
/// Crate `version` field from library's `Cargo.toml`
pub const CRATE_VERSION: &str = env!;
/// Crate `authors` field from library's `Cargo.toml`
pub const CRATE_AUTHORS: &str = env!;
/// Crate `package` field from library's `Cargo.toml`
pub const CRATE_NAME: &str = env!;
/// Crate `homepage` field from library's `Cargo.toml`
pub const CRATE_HOMEPAGE: &str = env!;
/// Crate `description` field from library's `Cargo.toml`
pub const CRATE_DESCRIPTION: &str = env!;