Macro shadow_rs::shadow

source ·
macro_rules! shadow {
    ($build_mod:ident) => { ... };
}
Expand description

Add a module with the provided name which contains the build information generated by shadow-rs.

§Example

use shadow_rs::shadow;

shadow!(my_build_information);

fn main() {
    println!("I'm version {}!", my_build_information::VERSION);
}

The convention, however, is to use shadow!(build);.