Provides the ability to gather information about the crate's cargo build.

All OysterPack modules must provide build time info. This module standardizes the approach, which leverages built.

How to integrate within your project

  1. Add the following to Cargo.toml: ```toml [package] build = "build.rs"

    [build-dependencies] oysterpack_built = "0.1" ```

  2. Include the following in build.rs:

    For Library Modules ```norun extern crate oysterpackbuilt;

    fn main() { oysterpackbuilt::writelibrarybuiltfile().expect("Failed to acquire build-time information"); } ```

    For Application (Binary) Modules ```norun extern crate oysterpackbuilt;

    fn main() { oysterpackbuilt::writeappbuiltfile().expect("Failed to acquire build-time information"); } ```

  3. The build script will by default write a file named built.rs into Cargo's output directory. It can be picked up like this: no_run // Use of a mod or pub mod is not actually necessary. pub mod build { // The file has been placed there by the build script. include!(concat!(env!("OUT_DIR"), "/built.rs")); }