wasm-manifest
Manifest and lockfile format types for WebAssembly packages.
This crate provides types for parsing and serializing WASM package manifests (wasm.toml)
and lockfiles (wasm.lock).
Manifest Format
The manifest file (deps/wasm.toml) supports two dependency formats:
Compact format
[]
= "ghcr.io/webassembly/wasi-logging:1.0.0"
= "ghcr.io/webassembly/wasi-key-value:2.0.0"
Explicit format
[]
= "ghcr.io"
= "webassembly"
= "wasi-logging"
= "1.0.0"
Lockfile Format
The lockfile (deps/wasm.lock) tracks resolved dependencies:
= 1
[[]]
= "wasi:logging"
= "1.0.0"
= "ghcr.io/webassembly/wasi-logging"
= "sha256:a1b2c3d4..."
[[]]
= "wasi:logging"
= "1.0.0"