Crate pkg [] [src]

A small utility library for binary applications.

Examples

#[macro_use]
extern crate pkg;

fn main() {
    println!("{} {}\n{}", pkg_name!(), pkg_version!(), pkg_description!());
}

Cargo features

This crate provides one cargo feature:

  • nightly: This uses language features only available on the nightly release channel for more optimal implementations.

Macros

pkg_authors

Macro for getting the crate authors from the cargo manifest.

pkg_description

Macro for getting the crate description from the cargo manifest.

pkg_homepage

Macro for getting the crate homepage from the cargo manifest.

pkg_name

Macro for getting the crate name from the cargo manifest.

pkg_version

Macro for getting the crate version from the cargo manifest.

Functions

bin_name

Returns the name of the binary file.