fitzgen added the good first issue label to Issue #10437.
fitzgen opened issue #10437:
We already have code to create default values in order to implement https://docs.rs/wasmtime/latest/wasmtime/struct.Linker.html#method.define_unknown_imports_as_default_values
We have duplicates of that code in the fuzzing utility crate: https://github.com/bytecodealliance/wasmtime/blob/main/crates/fuzzing/src/oracles/dummy.rs
We should just expose those constructors in the public API of the
wasmtime
crate, move the various fuzzing oracles over to these methods, and then delete 95% of thatwasmtime_fuzzing::oracles::dummy
module.I am thinking that we will want to expose these as
pub fn default_value(&self, store: impl AsContextMut) -> Option<T>
methods onwasmtime::{ExternType,GlobalType,MemoryType,ValType,...}
whereT
iswasmtime::Memory
for thewasmtime::MemoryType
method, etc...
Last updated: Apr 17 2025 at 01:31 UTC