From b5f29bd3b2a433ed2e8977dcb998afc55fd4e630 Mon Sep 17 00:00:00 2001 From: Olivier Lemasle Date: Mon, 17 May 2021 17:08:17 +0200 Subject: [PATCH] Update wasm-tools crates (#2908) wasmparser 0.78 adds the Unknown name subsection type. --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- cranelift/wasm/Cargo.toml | 2 +- cranelift/wasm/src/sections_translator.rs | 1 + crates/cranelift/Cargo.toml | 2 +- crates/debug/Cargo.toml | 2 +- crates/environ/Cargo.toml | 2 +- crates/fuzzing/Cargo.toml | 4 ++-- crates/jit/Cargo.toml | 2 +- crates/lightbeam/Cargo.toml | 2 +- crates/lightbeam/wasmtime/Cargo.toml | 2 +- crates/wasmtime/Cargo.toml | 2 +- crates/wast/Cargo.toml | 2 +- 13 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aad4a2bc11..e7b0c15595 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3483,15 +3483,15 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.77.0" +version = "0.78.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6" +checksum = "2f9255225d0124a59dd44def5cf98b62d70a27aed921f2c51e28035f08a73b0c" [[package]] name = "wasmprinter" -version = "0.2.25" +version = "0.2.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a64a1ecb60865b59789953ee6f62e49c3d47dde66b5b3f521c99b49d921836" +checksum = "2ccec894c70710c2e4669320a532cb2b9cfb97adb0429745642f8ce76916ed85" dependencies = [ "anyhow", "wasmparser", diff --git a/Cargo.toml b/Cargo.toml index bc121c2082..c5ce7886f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ libc = "0.2.60" log = "0.4.8" rayon = "1.2.1" humantime = "2.0.0" -wasmparser = "0.77.0" +wasmparser = "0.78.1" lazy_static = "1.4.0" [dev-dependencies] diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml index 902c5c7c4a..555791b8fb 100644 --- a/cranelift/wasm/Cargo.toml +++ b/cranelift/wasm/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["webassembly", "wasm"] edition = "2018" [dependencies] -wasmparser = { version = "0.77", default-features = false } +wasmparser = { version = "0.78", default-features = false } cranelift-codegen = { path = "../codegen", version = "0.73.0", default-features = false } cranelift-entity = { path = "../entity", version = "0.73.0" } cranelift-frontend = { path = "../frontend", version = "0.73.0", default-features = false } diff --git a/cranelift/wasm/src/sections_translator.rs b/cranelift/wasm/src/sections_translator.rs index bd4dcd1136..54bba7a344 100644 --- a/cranelift/wasm/src/sections_translator.rs +++ b/cranelift/wasm/src/sections_translator.rs @@ -486,6 +486,7 @@ pub fn parse_name_section<'data>( } } } + wasmparser::Name::Unknown { .. } => {} } } Ok(()) diff --git a/crates/cranelift/Cargo.toml b/crates/cranelift/Cargo.toml index 56fa647628..49e380a466 100644 --- a/crates/cranelift/Cargo.toml +++ b/crates/cranelift/Cargo.toml @@ -17,5 +17,5 @@ cranelift-wasm = { path = "../../cranelift/wasm", version = "0.73.0" } cranelift-codegen = { path = "../../cranelift/codegen", version = "0.73.0" } cranelift-frontend = { path = "../../cranelift/frontend", version = "0.73.0" } cranelift-entity = { path = "../../cranelift/entity", version = "0.73.0" } -wasmparser = "0.77.0" +wasmparser = "0.78.0" target-lexicon = "0.12" diff --git a/crates/debug/Cargo.toml b/crates/debug/Cargo.toml index eb20daecbb..5c2b0a2a2b 100644 --- a/crates/debug/Cargo.toml +++ b/crates/debug/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] gimli = "0.24.0" -wasmparser = "0.77" +wasmparser = "0.78" object = { version = "0.24.0", default-features = false, features = ["read_core", "elf", "write"] } wasmtime-environ = { path = "../environ", version = "0.26.0" } target-lexicon = { version = "0.12.0", default-features = false } diff --git a/crates/environ/Cargo.toml b/crates/environ/Cargo.toml index 6c90202bae..9d23814092 100644 --- a/crates/environ/Cargo.toml +++ b/crates/environ/Cargo.toml @@ -15,7 +15,7 @@ edition = "2018" cranelift-codegen = { path = "../../cranelift/codegen", version = "0.73.0", features = ["enable-serde"] } cranelift-entity = { path = "../../cranelift/entity", version = "0.73.0", features = ["enable-serde"] } cranelift-wasm = { path = "../../cranelift/wasm", version = "0.73.0", features = ["enable-serde"] } -wasmparser = "0.77" +wasmparser = "0.78" indexmap = { version = "1.0.2", features = ["serde-1"] } thiserror = "1.0.4" serde = { version = "1.0.94", features = ["derive"] } diff --git a/crates/fuzzing/Cargo.toml b/crates/fuzzing/Cargo.toml index c61404d952..0fb153d181 100644 --- a/crates/fuzzing/Cargo.toml +++ b/crates/fuzzing/Cargo.toml @@ -13,8 +13,8 @@ arbitrary = { version = "1.0.0", features = ["derive"] } env_logger = "0.8.1" log = "0.4.8" rayon = "1.2.1" -wasmparser = "0.77" -wasmprinter = "0.2.25" +wasmparser = "0.78" +wasmprinter = "0.2.26" wasmtime = { path = "../wasmtime" } wasmtime-wast = { path = "../wast" } wasm-encoder = "0.4.1" diff --git a/crates/jit/Cargo.toml b/crates/jit/Cargo.toml index 1e4caea321..167d4d08c8 100644 --- a/crates/jit/Cargo.toml +++ b/crates/jit/Cargo.toml @@ -28,7 +28,7 @@ rayon = { version = "1.0", optional = true } region = "2.2.0" thiserror = "1.0.4" target-lexicon = { version = "0.12.0", default-features = false } -wasmparser = "0.77" +wasmparser = "0.78" more-asserts = "0.2.1" anyhow = "1.0" cfg-if = "1.0" diff --git a/crates/lightbeam/Cargo.toml b/crates/lightbeam/Cargo.toml index 6f30be3d49..224e185fab 100644 --- a/crates/lightbeam/Cargo.toml +++ b/crates/lightbeam/Cargo.toml @@ -24,7 +24,7 @@ more-asserts = "0.2.1" smallvec = "1.6.1" thiserror = "1.0.9" typemap = "0.3" -wasmparser = "0.77" +wasmparser = "0.78" [dev-dependencies] lazy_static = "1.2" diff --git a/crates/lightbeam/wasmtime/Cargo.toml b/crates/lightbeam/wasmtime/Cargo.toml index a7870ca49c..8059104079 100644 --- a/crates/lightbeam/wasmtime/Cargo.toml +++ b/crates/lightbeam/wasmtime/Cargo.toml @@ -13,6 +13,6 @@ edition = "2018" [dependencies] lightbeam = { path = "..", version = "0.26.0" } -wasmparser = "0.77" +wasmparser = "0.78" cranelift-codegen = { path = "../../../cranelift/codegen", version = "0.73.0" } wasmtime-environ = { path = "../../environ", version = "0.26.0" } diff --git a/crates/wasmtime/Cargo.toml b/crates/wasmtime/Cargo.toml index a7e5a914cb..73ebb349cb 100644 --- a/crates/wasmtime/Cargo.toml +++ b/crates/wasmtime/Cargo.toml @@ -21,7 +21,7 @@ wasmtime-cache = { path = "../cache", version = "0.26.0", optional = true } wasmtime-profiling = { path = "../profiling", version = "0.26.0" } wasmtime-fiber = { path = "../fiber", version = "0.26.0", optional = true } target-lexicon = { version = "0.12.0", default-features = false } -wasmparser = "0.77" +wasmparser = "0.78" anyhow = "1.0.19" region = "2.2.0" libc = "0.2" diff --git a/crates/wast/Cargo.toml b/crates/wast/Cargo.toml index 8d76fe6c9d..9ca88b4edc 100644 --- a/crates/wast/Cargo.toml +++ b/crates/wast/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] anyhow = "1.0.19" wasmtime = { path = "../wasmtime", version = "0.26.0", default-features = false } -wast = "35.0.1" +wast = "35.0.2" [badges] maintenance = { status = "actively-developed" }