macro_rules! build_metadata {
() => { ... };
}Expand description
Get the build metadata of your package in a constant expression.
Evaluates to Some(str) if your package has a build metadata string in the version.
Evaluates to None otherwise.
ยงExample
const VERSION_PRE: Option<&str> = const_pkg_version::pre_release!();