Macro from_shadow

Source
macro_rules! from_shadow {
    ($shadow_module:ident) => { ... };
}
Expand description

Generates a constant containing a preformatted version string.

Use this together with shadow-rs, by placing the following into your main.rs or lib.rs:

shadow_rs::shadow!(build);
shadow_formatted_version::from_shadow!(build);

The name “build” is of the module that shadow-rs generates. You can choose a different name, if you prefer.