Library for working with semantic versions using logic that is compatible with the WebAssembly Component Model implementation in Wasmtime.
For the provided VersionMap type, key lookup logic follows the rules:
- For
majorversions >0: select the latest version matching${major}.*.* - For
minorversions >0(whenmajoris0): select the latest version matching0.${minor}.* - Otherwise (when
majorandminorare both0): select the latest version matching0.0.${patch} - Pre-release versions always must have an exact match in the map
cargo add wasm-component-semver