1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! 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`).
//!
//! # Example: Parsing a Manifest
//!
//! ```rust
//! use wasm_manifest::Manifest;
//!
//! let toml = r#"
//! [interfaces]
//! "wasi:logging" = "ghcr.io/webassembly/wasi-logging:1.0.0"
//! "#;
//!
//! let manifest: Manifest = toml::from_str(toml).unwrap();
//! ```
//!
//! # Example: Parsing a Lockfile
//!
//! ```rust
//! use wasm_manifest::Lockfile;
//!
//! let toml = r#"
//! lockfile_version = 2
//!
//! [[interfaces]]
//! name = "wasi:logging"
//! version = "1.0.0"
//! registry = "ghcr.io/webassembly/wasi-logging"
//! digest = "sha256:abc123"
//! "#;
//!
//! let lockfile: Lockfile = toml::from_str(toml).unwrap();
//! ```
pub use ;
pub use ;
pub use ;
pub use ;