Skip to content

Commit 869900d

Browse files
chore: update wirm to 5.0.0
This updates wirm to 5.0.0 to re-enable the custom section deleting functionality
1 parent 2d06628 commit 869900d

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ anyhow = { version = "1.0.95", default-features = false }
1515
heck = { version = "0.5", default-features = false }
1616
rand = { version = "0.8", default-features = false }
1717
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
18-
wirm = { version = "4.0.6", default-features = false }
18+
wirm = { version = "5.0.0", default-features = false }
1919

2020
wasm-encoder = { version = "0.245.1", features = ["component-model", "std"] }
2121
wasmparser = { version = "0.245.1", features = [

crates/spidermonkey-embedding-splicer/src/splice.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ pub fn splice(
356356
);
357357
}
358358

359+
// we reencode the WASI world component data, so strip it out from the
360+
// custom section
361+
let maybe_component_section_id = module
362+
.custom_sections
363+
.get_id("component-type:bindings".to_string());
364+
if let Some(component_section_id) = maybe_component_section_id {
365+
module.delete_custom_section(component_section_id);
366+
}
367+
359368
// Extract the native instructions from sample functions
360369
// then inline the imported functions and main import gating function
361370
// (erasing sample functions in the process)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)