Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to wasmtime 3.0.0 #65

Merged
merged 9 commits into from
Apr 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
900 changes: 617 additions & 283 deletions Cargo.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ env_logger = { version = "0.8.2", optional = true }
log = "0.4.14"
rayon = "1.5.0"
structopt = { version = "0.3.21", optional = true }
wasi-cap-std-sync = "0.35.3"
wasm-encoder = "0.6.0"
wasmparser = "0.78.2"
wasmtime = "0.35.3"
wasmtime-wasi = "0.35.3"
wasi-cap-std-sync = "3.0.0"
wasm-encoder = "0.10.0"
wasmparser = "0.87.0"
wasmtime = "3.0.0"
wasmtime-wasi = "3.0.0"

# Enable this dependency to get messages with WAT disassemblies when certain
# internal panics occur.
Expand All @@ -49,8 +49,8 @@ optional = true
[dev-dependencies]
criterion = "0.3.4"
env_logger = "0.8.2"
wasmprinter = "0.2.26"
wat = "1.0.36"
wasmprinter = "0.2.55"
wat = "1.0.62"

[workspace]
members = [
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ libfuzzer-sys = "0.4"
log = "0.4.14"
wasm-smith = "0.4.0"
wasmprinter = "0.2.26"
wasmtime = "0.35.3"
wasmtime = "3.0.0"

[dependencies.wizer]
path = ".."
Expand Down
11 changes: 1 addition & 10 deletions fuzz/fuzz_targets/same_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ fuzz_target!(|module: wasm_smith::ConfiguredModule<WasmConfig>| {

let mut config = Config::new();
config.cache_config_load_default().unwrap();
config.wasm_module_linking(true);
config.wasm_multi_memory(true);
config.wasm_multi_value(true);

Expand Down Expand Up @@ -69,7 +68,6 @@ fuzz_target!(|module: wasm_smith::ConfiguredModule<WasmConfig>| {
// initialization routine.
let mut wizer = wizer::Wizer::new();
wizer
.wasm_module_linking(true)
.wasm_multi_memory(true)
.wasm_multi_value(true)
.init_func(init_func);
Expand Down Expand Up @@ -162,10 +160,7 @@ fuzz_target!(|module: wasm_smith::ConfiguredModule<WasmConfig>| {
panic!("divergence between snapshot and non-snapshot memories");
}
}
Extern::Instance(_)
| Extern::Func(_)
| Extern::Table(_)
| Extern::Module(_) => continue,
Extern::SharedMemory(_) | Extern::Func(_) | Extern::Table(_) => continue,
}
}
}
Expand Down Expand Up @@ -201,10 +196,6 @@ impl<'a> arbitrary::Arbitrary<'a> for WasmConfig {
}

impl wasm_smith::Config for WasmConfig {
fn module_linking_enabled(&self) -> bool {
true
}

fn max_memories(&self) -> usize {
10
}
Expand Down
Loading