Skip to main content

pkg_version

Macro pkg_version 

Source
macro_rules! pkg_version {
    () => { ... };
}
Expand description

Expands to pack_version(MAJOR, MINOR, PATCH) using the calling crate’s Cargo.toml version fields. Zero runtime cost — evaluates to a u16 constant.

Usage: static VERSION: u16 = tinyboot_protocol::pkg_version!();