[−][src]Module randomorg::version
This module gives the build and version information about the library.
Usage
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());
Modules
build | Contains build information about the library, taken from build environment. |
Constants
BUILD_TIMESTAMP | Build timestamp. |
CRATE_AUTHORS | Crate |
CRATE_DESCRIPTION | Crate |
CRATE_HOMEPAGE | Crate |
CRATE_NAME | Crate |
CRATE_VERSION | Crate |
SEMVER | Semantic version. |
SHA | Commit SHA hash |
TARGET_TRIPLE | Built for this target triple. |