[package]
name = "golem-wasm-ast"
version = "1.0.1"
edition = "2021"
license = "Apache-2.0"
homepage = "https://golem.cloud"
description = "WASM AST"
[dependencies]
bincode = { version = "2.0.0-rc.3", optional = true }
leb128 = { version = "0.2.5", optional = true }
mappable-rc = "0.1.1"
poem-openapi = { version = "5.0", optional = true }
prost = { version = "0.12", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
wasmparser = { version = "0.207.0", optional = true }
wasm-encoder = { version = "0.207.0", optional = true }
wasm-metadata = { version = "0.207.0", optional = true }
wasm-wave = { version = "=0.6.0", optional = true }
[dev-dependencies]
colored-diff = "0.2.3"
pretty_assertions = "1.4.0"
test-r = { version = "0.0.3", default-features = false }
wasmprinter = "0.207.0"
[build-dependencies]
prost-build = "0.12.6"
[features]
default = ["parser", "writer", "component", "metadata", "analysis", "wave", "json", "bincode", "poem_openapi", "protobuf"]
parser = ["dep:wasmparser", "dep:leb128"]
writer = ["dep:wasm-encoder"]
component = []
metadata = ["dep:wasm-metadata"]
analysis = ["component"]
wave = ["dep:wasm-wave"]
bincode = ["dep:bincode"]
json = ["dep:serde", "dep:serde_json"]
poem_openapi = ["json", "dep:poem-openapi"]
protobuf = ["dep:prost"]
[lib]
path = "src/lib.rs"
harness = false
[[test]]
name = "exports"
harness = false
[[test]]
name = "mems"
harness = false
[[test]]
name = "metadata"
harness = false
[[test]]
name = "roundtrip"
harness = false