Skip to main content

apply_bump

Function apply_bump 

Source
pub fn apply_bump(current: &Version, level: BumpLevel) -> Version
Expand description

Apply a bump level to a semver version, returning the new version.

Resets lower components to zero (e.g. minor bump 1.2.31.3.0). For versions < 1.0.0, major bumps still increment the major component.