diff --git a/crates/fuzzing/src/generators/config.rs b/crates/fuzzing/src/generators/config.rs index 437c7c235ba0..60942506e19e 100644 --- a/crates/fuzzing/src/generators/config.rs +++ b/crates/fuzzing/src/generators/config.rs @@ -135,6 +135,7 @@ impl Config { extended_const, wide_arithmetic, component_model_more_flags, + component_model_async, simd, hogs_memory: _, @@ -147,6 +148,7 @@ impl Config { self.module_config.function_references_enabled = function_references.or(gc).unwrap_or(false); self.module_config.component_model_more_flags = component_model_more_flags.unwrap_or(false); + self.module_config.component_model_async = component_model_async.unwrap_or(false); // Enable/disable proposals that wasm-smith has knobs for which will be // read when creating `wasmtime::Config`. @@ -260,6 +262,7 @@ impl Config { .wasm_wide_arithmetic(self.module_config.config.wide_arithmetic_enabled) .wasm_extended_const(self.module_config.config.extended_const_enabled) .wasm_component_model_more_flags(self.module_config.component_model_more_flags) + .wasm_component_model_async(self.module_config.component_model_async) .native_unwind_info(cfg!(target_os = "windows") || self.wasmtime.native_unwind_info) .cranelift_nan_canonicalization(self.wasmtime.canonicalize_nans) .cranelift_opt_level(self.wasmtime.opt_level.to_wasmtime()) diff --git a/crates/fuzzing/src/generators/module.rs b/crates/fuzzing/src/generators/module.rs index 283edaf1d2b8..9b8715636399 100644 --- a/crates/fuzzing/src/generators/module.rs +++ b/crates/fuzzing/src/generators/module.rs @@ -16,6 +16,7 @@ pub struct ModuleConfig { // config-to-`wasmtime::Config` translation. pub function_references_enabled: bool, pub component_model_more_flags: bool, + pub component_model_async: bool, } impl<'a> Arbitrary<'a> for ModuleConfig { @@ -62,6 +63,7 @@ impl<'a> Arbitrary<'a> for ModuleConfig { Ok(ModuleConfig { component_model_more_flags: false, + component_model_async: false, function_references_enabled: config.gc_enabled, config, })