Skip to content

Commit 6f2405b

Browse files
committed
Update wasm-tools dependencies
This notably updates to handle bytecodealliance/wasm-tools#1711 but this is done in a way that is not intended to replace bytecodealliance#1035 but instead makes the update "as easy as possible" by just adding calls to `.{size,align}_wasm32()` where needed. Full support is expected to land in bytecodealliance#1035.
1 parent 7b4d9e5 commit 6f2405b

File tree

6 files changed

+94
-70
lines changed

6 files changed

+94
-70
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ indexmap = "2.0.0"
3232
prettyplease = "0.2.20"
3333
syn = { version = "2.0", features = ["printing"] }
3434

35-
wasmparser = "0.215.0"
36-
wasm-encoder = "0.215.0"
37-
wasm-metadata = "0.215.0"
38-
wit-parser = "0.215.0"
39-
wit-component = "0.215.0"
35+
wasmparser = "0.216.0"
36+
wasm-encoder = "0.216.0"
37+
wasm-metadata = "0.216.0"
38+
wit-parser = "0.216.0"
39+
wit-component = "0.216.0"
4040

4141
wit-bindgen-core = { path = 'crates/core', version = '0.30.0' }
4242
wit-bindgen-c = { path = 'crates/c', version = '0.30.0' }

crates/c/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3027,7 +3027,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
30273027
uwriteln!(self.src, "uint8_t *{ptr} = {};", operands[0]);
30283028
let i = self.locals.tmp("i");
30293029
uwriteln!(self.src, "for (size_t {i} = 0; {i} < {len}; {i}++) {{");
3030-
let size = self.gen.gen.sizes.size(element);
3030+
let size = self.gen.gen.sizes.size(element).size_wasm32();
30313031
uwriteln!(self.src, "uint8_t *base = {ptr} + {i} * {size};");
30323032
uwriteln!(self.src, "(void) base;");
30333033
uwrite!(self.src, "{body}");

0 commit comments

Comments
 (0)