[package]
name = "wasmtime-test-util"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
publish = false
description = "Utilities tests in Wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
[lints]
workspace = true
[dependencies]
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
toml = { workspace = true, optional = true }
arbitrary = { workspace = true, optional = true }
quote = { workspace = true, optional = true }
proc-macro2 = { workspace = true, optional = true }
wasmtime-component-util = { workspace = true, optional = true }
wasmtime-environ = { workspace = true }
target-lexicon = { workspace = true, optional = true }
env_logger = { workspace = true, optional = true }
wasmtime = { workspace = true, optional = true }
indexmap = { workspace = true, optional = true, features = ['std'] }
[dev-dependencies]
rand = { workspace = true }
wat = { workspace = true }
wasmparser = { workspace = true, features = ['validate', 'component-model', 'features'] }
wasmprinter = { workspace = true, features = ['component-model'] }
arbtest = { workspace = true }
[features]
wast = [
'dep:serde',
'dep:toml',
'dep:serde_derive',
]
wasmtime-wast = [
'wast',
'dep:wasmtime',
'wasmtime/cranelift',
'wasmtime/winch',
'wasmtime/gc-drc',
'wasmtime/gc-null',
'wasmtime/threads',
'wasmtime/component-model-async',
'dep:target-lexicon',
]
component = [
'arbitrary/derive',
'wast',
'dep:env_logger',
'dep:wasmtime',
'wasmtime/component-model',
'wasmtime/async',
]
component-fuzz = [
'dep:arbitrary',
'arbitrary/derive',
'dep:indexmap',
'dep:quote',
'dep:proc-macro2',
'dep:wasmtime-component-util',
]