wasm-component-semver

Crates.iowasm-component-semver
lib.rswasm-component-semver
version1.0.1
created_at2025-07-09 19:12:10.263041+00
updated_at2025-07-09 20:07:56.550656+00
descriptionLibrary for working with semantic versions using logic that is compatible with the WebAssembly Component Model implementation in Wasmtime
homepage
repository
max_upload_size
id1745347
size33,439
ANDYL (andyl-owner)

documentation

README

WASM Component Semver

Crates.io Documentation License

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 major versions > 0: select the latest version matching ${major}.*.*
  • For minor versions > 0 (when major is 0): select the latest version matching 0.${minor}.*
  • Otherwise (when major and minor are both 0): select the latest version matching 0.0.${patch}
  • Pre-release versions always must have an exact match in the map

Installation

cargo add wasm-component-semver
Commit count: 0

cargo fmt