[package] name = "radix-wasm-instrument" version = "1.0.0" edition = "2021" rust-version = "1.56.1" authors = ["Ɓukasz Rubaszewski ", "Parity Technologies "] license = "MIT OR Apache-2.0" description = "Instrument and transform wasm modules." keywords = ["wasm", "webassembly", "blockchain", "gas-metering", "parity"] categories = ["wasm", "no-std"] repository = "https://github.com/paritytech/wasm-instrument" include = ["src/**/*", "LICENSE-*", "README.md"] [[bench]] name = "instrumentation" harness = false path = "benches/instrumentation.rs" [[bench]] name = "execution" harness = false path = "benches/execution.rs" [profile.bench] lto = "fat" codegen-units = 1 [dependencies] wasmparser = { version = "0.107.0", default-features = false } wasmprinter = { version = "0.2.59" } wasm-encoder = { version = "0.29.0" } anyhow = { version = "1.0.71" } paste = { version = "1.0.12" } [dev-dependencies] binaryen = "0.12" criterion = "0.4" diff = "0.1" pretty_assertions = "1" rand = "0.8" wat = "1.0.66" wasmi = "0.29" wabt = { version = "0.10.0" } [features] default = ["std"] std = [] # If set then custom section is ignored (if present) when WASM parsing into ModuleInfo. If it is # later converted back to WASM code, custom section will not be present. # It allows to spare some memory. # According to the WASM spec (see # https://webassembly.github.io/spec/core/appendix/custom.html#custom-sections) # ignoring Custom section shall not have any impact. ignore_custom_section = [] [lib] bench = false