[package]
name = "wasmtime-bench-api"
version.workspace = true
authors.workspace = true
description = "Exposes a benchmarking API for the Wasmtime runtime"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
readme = "README.md"
edition.workspace = true
publish = false

[lib]
name = "wasmtime_bench_api"
crate-type = ["cdylib"]
doctest = false

[dependencies]
anyhow = { workspace = true }
shuffling-allocator = { version = "1.1.1", optional = true }
target-lexicon = { workspace = true }
wasmtime = { workspace = true }
wasmtime-cli-flags = { workspace = true, default-features = true }
wasmtime-wasi = { workspace = true, default-features = true }
wasmtime-wasi-nn = { workspace = true, optional = true }
wasi-cap-std-sync = { workspace = true }
cap-std = { workspace = true }
clap = { workspace = true }

[dev-dependencies]
wat = { workspace = true }

[features]
default = ["shuffling-allocator", "wasi-nn"]
wasi-nn = ["wasmtime-wasi-nn"]
