Skip to main content

parse_major

Function parse_major 

Source
pub fn parse_major(version: &str) -> Result<u64, Error>
Expand description

Parse just the MAJOR (only MAJOR is contract-significant from MAJOR ≥ 1). Thin wrapper over parse; the full grammar (including MINOR/PATCH and no-leading-zeros) is still enforced.