1[package] 2name = "wasmtime-test-util" 3version.workspace = true 4authors.workspace = true 5edition.workspace = true 6rust-version.workspace = true 7publish = false 8description = "Utilities tests in Wasmtime" 9license = "Apache-2.0 WITH LLVM-exception" 10repository = "https://github.com/bytecodealliance/wasmtime" 11 12[lints] 13workspace = true 14 15[dependencies] 16serde = { workspace = true, optional = true } 17serde_derive = { workspace = true, optional = true } 18toml = { workspace = true, optional = true } 19arbitrary = { workspace = true, optional = true } 20quote = { workspace = true, optional = true } 21proc-macro2 = { workspace = true, optional = true } 22wasmtime-component-util = { workspace = true, optional = true } 23wasmtime-environ = { workspace = true } 24target-lexicon = { workspace = true, optional = true } 25env_logger = { workspace = true, optional = true } 26wasmtime = { workspace = true, optional = true } 27indexmap = { workspace = true, optional = true, features = ['std'] } 28# NB: this crate is compiled both in as a dependency of a proc-macro and as a 29# dependency of tests themselves. That means dependencies of this crate are 30# compiled twice. Try to ensure "big" dependencies are optional and feature 31# gated. 32 33[dev-dependencies] 34rand = { workspace = true } 35wat = { workspace = true } 36wasmparser = { workspace = true, features = ['validate', 'component-model', 'features'] } 37wasmprinter = { workspace = true, features = ['component-model'] } 38arbtest = { workspace = true } 39 40[features] 41wast = [ 42 'dep:serde', 43 'dep:toml', 44 'dep:serde_derive', 45] 46wasmtime-wast = [ 47 'wast', 48 'dep:wasmtime', 49 'wasmtime/cranelift', 50 'wasmtime/winch', 51 'wasmtime/gc-drc', 52 'wasmtime/gc-null', 53 'wasmtime/threads', 54 'wasmtime/component-model-async', 55 'dep:target-lexicon', 56] 57component = [ 58 'arbitrary/derive', 59 'wast', 60 'dep:env_logger', 61 'dep:wasmtime', 62 'wasmtime/component-model', 63 'wasmtime/async', 64] 65component-fuzz = [ 66 'dep:arbitrary', 67 'arbitrary/derive', 68 'dep:indexmap', 69 'dep:quote', 70 'dep:proc-macro2', 71 'dep:wasmtime-component-util', 72] 73