| 1 |
[package] |
| 2 |
name = "wasm-metadata" |
| 3 |
version.workspace = true |
| 4 |
edition.workspace = true |
| 5 |
license.workspace = true |
| 6 |
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata" |
| 7 |
description = "Read and manipulate WebAssembly metadata" |
| 8 |
rust-version.workspace = true |
| 9 |
|
| 10 |
[lints] |
| 11 |
workspace = true |
| 12 |
|
| 13 |
[dependencies] |
| 14 |
anyhow = { workspace = true } |
| 15 |
clap = { workspace = true, optional = true } |
| 16 |
indexmap = { workspace = true, features = ["serde"] } |
| 17 |
serde = { workspace = true, optional = true } |
| 18 |
serde_derive = { workspace = true, optional = true } |
| 19 |
serde_json = { workspace = true, optional = true } |
| 20 |
spdx = { workspace = true, optional = true } |
| 21 |
url = { workspace = true, optional = true } |
| 22 |
wasm-encoder = { workspace = true, features = ['std', 'component-model'] } |
| 23 |
wasmparser = { workspace = true, features = ['std', 'component-model', 'hash-collections'] } |
| 24 |
auditable-serde = { version = "0.8.0", optional = true } |
| 25 |
flate2 = { version = "1.1.0", optional = true } |
| 26 |
|
| 27 |
[features] |
| 28 |
default = ['oci', 'serde'] |
| 29 |
oci = [ |
| 30 |
'dep:auditable-serde', |
| 31 |
'dep:flate2', |
| 32 |
'dep:url', |
| 33 |
'dep:spdx', |
| 34 |
'dep:serde_json', |
| 35 |
'serde', |
| 36 |
] |
| 37 |
|
| 38 |
serde = ['dep:serde_derive', 'dep:serde'] |