diff --git a/crates/wizer/src/component/parse.rs b/crates/wizer/src/component/parse.rs
index 2e1449c509e1..7179e026242c 100644
--- a/crates/wizer/src/component/parse.rs
+++ b/crates/wizer/src/component/parse.rs
@@ -39,7 +39,7 @@ fn parse_into<'a>(
// Module sections get parsed with wizer's core wasm support.
Payload::ModuleSection { .. } => match &mut cx {
Some(component) => {
- let info = crate::parse::parse_with(&full_wasm, &mut iter)?;
+ let info = crate::parse::parse_with(&full_wasm, &mut iter, false)?;
component.push_module_section(info);
}
None => {
diff --git a/crates/wizer/src/component/rewrite.rs b/crates/wizer/src/component/rewrite.rs
index 4f7c5fc631e0..1039459c2fa0 100644
--- a/crates/wizer/src/component/rewrite.rs
+++ b/crates/wizer/src/component/rewrite.rs
@@ -37,8 +37,13 @@ impl Wizer {
// and the results of that are spliced into the
// component.
Some(snapshot) => {
- let rewritten_wasm =
- self.rewrite(module, snapshot, &FuncRenames::default(), false);
+ let rewritten_wasm = self.rewrite(
+ module,
+ snapshot,
+ &FuncRenames::default(),
+ false,
+ false,
+ );
encoder.section(&wasm_encoder::RawSection {
id: wasm_encoder::ComponentSectionId::CoreModule as u8,
data: &rewritten_wasm,
diff --git a/crates/wizer/src/lib.rs b/crates/wizer/src/lib.rs
index 9dfe5f980037..9dcc17baaf6d 100644
--- a/crates/wizer/src/lib.rs
+++ b/crates/wizer/src/lib.rs
@@ -29,6 +29,7 @@ use std::collections::{HashMap, HashSet};
pub use wasmparser::ValType;
const DEFAULT_KEEP_INIT_FUNC: bool = false;
+const DEFAULT_KEEP_INSTRUMENTATION: bool = false;
/// Wizer: the WebAssembly pre-initializer!
///
@@ -98,6 +99,18 @@ pub struct Wizer {
arg(long, require_equals = true, value_name = "true|false")
)]
keep_init_func: Option