Crate wasm_component_semver

Source
Expand description

A specialized map for semantic versions with alternate version lookup support.

This module best approximates the behavior of WASM component loading in wasmtime, such as in wasmtime::component::Linker.

This module provides VersionMap<T>, which stores values indexed by semantic versions and supports fallback lookups through version alternates (e.g., 1.2.3 can be found via 1.0.0 if it’s the latest patch for major version 1).

Structs§

VersionMap
A map that stores values indexed by semantic versions with support for alternate lookups.