From 89764e7dedc9f56065acfea529e41310a3a5bad6 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Fri, 8 Nov 2024 12:21:08 +0100 Subject: [PATCH] Enable upgrade of wasm encoder dependencies to 0.213 by specifying "shared" in TableType --- Cargo.toml | 4 ++-- src/module/imports.rs | 1 + src/module/tables.rs | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fc48441a..6fb05839 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,8 +29,8 @@ leb128 = "0.2.4" log = "0.4.8" rayon = { version = "1.1.0", optional = true } walrus-macro = { path = './crates/macro', version = '=0.22.0' } -wasm-encoder = "0.212.0" -wasmparser = "0.212.0" +wasm-encoder = "0.213.0" +wasmparser = "0.213.0" gimli = "0.26.0" [features] diff --git a/src/module/imports.rs b/src/module/imports.rs index c37cfda7..277f0577 100644 --- a/src/module/imports.rs +++ b/src/module/imports.rs @@ -301,6 +301,7 @@ impl Emit for ModuleImports { table64: table.table64, minimum: table.initial, maximum: table.maximum, + shared: false, }) } ImportKind::Memory(id) => { diff --git a/src/module/tables.rs b/src/module/tables.rs index 0f9c3aee..1540e217 100644 --- a/src/module/tables.rs +++ b/src/module/tables.rs @@ -192,6 +192,7 @@ impl Emit for ModuleTables { RefType::Externref => wasm_encoder::RefType::EXTERNREF, RefType::Funcref => wasm_encoder::RefType::FUNCREF, }, + shared: false }); }