Skip to content

Commit 582b733

Browse files
committed
Update to walrus 0.12.0
1 parent 7cca275 commit 582b733

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

crates/anyref-xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ edition = '2018'
1313

1414
[dependencies]
1515
failure = "0.1"
16-
walrus = "0.11.0"
16+
walrus = "0.12.0"

crates/cli-support/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ log = "0.4"
1818
rustc-demangle = "0.1.13"
1919
serde_json = "1.0"
2020
tempfile = "3.0"
21-
walrus = "0.11.0"
21+
walrus = "0.12.0"
2222
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.50' }
2323
wasm-bindgen-shared = { path = "../shared", version = '=0.2.50' }
2424
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.50' }
2525
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.50' }
26-
wasm-webidl-bindings = "0.4.0"
26+
wasm-webidl-bindings = "0.5.0"

crates/cli-support/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ impl Output {
539539
.join(wasm_name)
540540
.with_extension("wasm");
541541
fs::create_dir_all(out_dir)?;
542-
let wasm_bytes = self.module.emit_wasm()?;
542+
let wasm_bytes = self.module.emit_wasm();
543543
fs::write(&wasm_path, wasm_bytes)
544544
.with_context(|_| format!("failed to write `{}`", wasm_path.display()))?;
545545

crates/cli-support/src/wasm2es6js.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl Output {
165165
imports = imports,
166166
set_exports = set_exports,
167167
);
168-
let wasm = self.module.emit_wasm().expect("failed to serialize");
168+
let wasm = self.module.emit_wasm();
169169
let (bytes, booted) = if self.base64 {
170170
(
171171
format!(

crates/cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rouille = { version = "3.0.0", default-features = false }
2424
serde = { version = "1.0", features = ['derive'] }
2525
serde_derive = "1.0"
2626
serde_json = "1.0"
27-
walrus = { version = "0.11.0", features = ['parallel'] }
27+
walrus = { version = "0.12.0", features = ['parallel'] }
2828
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.50" }
2929
wasm-bindgen-shared = { path = "../shared", version = "=0.2.50" }
3030

crates/threads-xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ edition = "2018"
1313

1414
[dependencies]
1515
failure = "0.1"
16-
walrus = "0.11.0"
16+
walrus = "0.12.0"

crates/threads-xform/src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ fn inject_start(
388388
// nonzero (assuming we don't overflow...)
389389
body.local_get(local);
390390
body.if_else(
391-
Box::new([]),
392-
Box::new([]),
391+
None,
393392
// If our thread id is nonzero then we're the second or greater thread, so
394393
// we give ourselves a stack via memory.grow and we update our stack
395394
// pointer as the default stack pointer is surely wrong for us.
@@ -401,7 +400,7 @@ fn inject_start(
401400
.local_set(local);
402401

403402
// if local0 == -1 then trap
404-
body.block(Box::new([]), Box::new([]), |body| {
403+
body.block(None, |body| {
405404
let target = body.id();
406405
body.local_get(local)
407406
.i32_const(-1)

crates/wasm-interpreter/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition = '2018'
1414
[dependencies]
1515
failure = "0.1"
1616
log = "0.4"
17-
walrus = "0.11.0"
17+
walrus = "0.12.0"
1818

1919
[dev-dependencies]
2020
tempfile = "3"

0 commit comments

Comments
 (0)