Module randomorg::version
[−]
[src]
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\tBuild date: {}\n\tCommit: {} of {}\n\tTarget: {}\n\tGit version: {} \n\tFeatures: {}\n\tProfile: {}", version::short_now(), version::short_sha(), version::commit_date(), version::target(), version::semver(), build::features(), build::profile());
Modules
build |
Contains build information about the library, taken from build environment. |
version |
Contains version information about the library, mostly got from git. |
Constants
CRATE_AUTHORS |
Crate |
CRATE_DESCRIPTION |
Crate |
CRATE_HOMEPAGE |
Crate |
CRATE_NAME |
Crate |
CRATE_VERSION |
Crate |