Skip to main content

parser_info

Macro parser_info 

Source
macro_rules! parser_info {
    () => { ... };
    ($schema:expr) => { ... };
}
Expand description

The producing parser of the running crate: parser_info!() expands to a ParserInfo with the calling crate’s name, version and crate::SKELETON_SCHEMA. Every format crate defines that constant (pub const SKELETON_SCHEMA: u32 = 1;) and bumps it only when its skeleton changes. parser_info!(n) stamps an explicit schema instead.