From 5752b1c9e83ea644ef837149b4e9cfc528c039ca Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Tue, 12 Nov 2024 06:52:40 +0100 Subject: [PATCH] `wasmparser`: fix crate feature propagation (#1902) * fix crate features propagation * fix wasm-metadata compilation --- crates/wasm-metadata/Cargo.toml | 2 +- crates/wasmparser/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/wasm-metadata/Cargo.toml b/crates/wasm-metadata/Cargo.toml index d2b6b1d8ab..ba7acd07d3 100644 --- a/crates/wasm-metadata/Cargo.toml +++ b/crates/wasm-metadata/Cargo.toml @@ -13,7 +13,7 @@ workspace = true [dependencies] clap = { workspace = true, optional = true } anyhow = { workspace = true } -wasmparser = { workspace = true, features = ['component-model'] } +wasmparser = { workspace = true, features = ['component-model', 'hash-collections'] } wasm-encoder = { workspace = true, features = ['component-model'] } indexmap = { workspace = true, features = ["serde"] } serde = { workspace = true } diff --git a/crates/wasmparser/Cargo.toml b/crates/wasmparser/Cargo.toml index 98c87f70fd..a814cb8244 100644 --- a/crates/wasmparser/Cargo.toml +++ b/crates/wasmparser/Cargo.toml @@ -48,7 +48,7 @@ default = ['std', 'validate', 'serde', 'features', 'component-model', 'hash-coll # A feature which enables implementations of `std::error::Error` as appropriate # along with other convenience APIs. This additionally uses the standard # library's source of randomness for seeding hash maps. -std = ['indexmap/std'] +std = ['indexmap?/std'] # Tells the `wasmparser` crate to provide (and use) hash-based collections internally. # @@ -70,7 +70,7 @@ validate = ['dep:semver'] # Enable Serialize/Deserialize implementations for types in # `wasmparser::collections` -serde = ['dep:serde', 'indexmap/serde', 'hashbrown/serde'] +serde = ['dep:serde', 'indexmap?/serde', 'hashbrown?/serde'] # A feature that enables the guts of the `WasmFeatures` type in this crate. #