Module toornament::info [] [src]

This module gives the build and version information about the library.

Usage

use toornament::info::*;
 
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 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