This commit builds on bytecodealliance/wasm-tools#690 to add support to testing of the component model to execute functions when running `*.wast` files. This support is all built on #4442 as functions are invoked through a "dynamic" API. Right now the testing and integration is fairly crude but I'm hoping that we can try to improve it over time as necessary. For now this should provide a hopefully more convenient syntax for unit tests and the like.
28 lines
575 B
TOML
28 lines
575 B
TOML
[package]
|
|
name = "wasmtime-environ-fuzz"
|
|
version = "0.0.0"
|
|
authors = ["Automatically generated"]
|
|
publish = false
|
|
edition = "2018"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
arbitrary = { version = "1.1.0", features = ["derive"] }
|
|
env_logger = "0.9.0"
|
|
libfuzzer-sys = "0.4"
|
|
wasmparser = "0.88.0"
|
|
wasmprinter = "0.2.37"
|
|
wasmtime-environ = { path = ".." }
|
|
|
|
[[bin]]
|
|
name = "fact-valid-module"
|
|
path = "fuzz_targets/fact-valid-module.rs"
|
|
test = false
|
|
doc = false
|
|
required-features = ["component-model"]
|
|
|
|
[features]
|
|
component-model = ["wasmtime-environ/component-model"]
|