[package] name = "finite-wasm" version = "0.5.0" edition = "2021" authors = ["Simonas Kazlauskas "] license = "MIT OR Apache-2.0" readme = "README.mkd" repository = "https://github.com/near/finite-wasm" homepage = "https://github.com/near/finite-wasm" documentation = "https://docs.rs/finite-wasm" description = """ Guarantee deterministic limits on execution time and space resources made available to the WebAssembly programs in a runtime-agnostic way. """ exclude = ["/tests/snaps"] [[test]] name = "wast" path = "src/wast_tests/runner.rs" harness = false required-features = ["wast-tests"] [[bench]] name = "instrument_all" path = "benches/instrument_all.rs" harness = false required-features = ["instrument"] [dependencies] atoi = { version = "2.0", optional = true } bitvec = "1.0.1" dissimilar = "1" lazy_static = { version = "1.4", optional = true } libc = { version = "0.2.144", optional = true } wasmparser = "0.105.0" # Ensure that we depend on a single version of wasmparser only (patch versions bump wasmparser dep) wasmprinter = "=0.2.57" thiserror = "1" num-traits = "0.2.15" prefix-sum-vec = "0.1.2" tempfile = { version = "3.5", optional = true } wasm-encoder = { version = "0.27.0", optional = true } wast = { version = "52", optional = true } [dev-dependencies] criterion = "0.4.0" rayon = "1.6.1" walkdir = "2.3.0" wasm-instrument = "0.4" [features] instrument = ["wasm-encoder"] wast-tests = ["atoi", "instrument", "lazy_static", "libc", "tempfile", "wast"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "finite_wasm_docs"]