[][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 authors field from library's Cargo.toml

CRATE_DESCRIPTION

Crate description field from library's Cargo.toml

CRATE_HOMEPAGE

Crate homepage field from library's Cargo.toml

CRATE_NAME

Crate package field from library's Cargo.toml

CRATE_VERSION

Crate version field from library's Cargo.toml

SEMVER

Semantic version.

SHA

Commit SHA hash

TARGET_TRIPLE

Built for this target triple.