Skip to content

Commit

Permalink
wasmparser: fix crate feature propagation (#1902)
Browse files Browse the repository at this point in the history
* fix crate features propagation

* fix wasm-metadata compilation
  • Loading branch information
Robbepop authored Nov 12, 2024
1 parent 2997172 commit 5752b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/wasm-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions crates/wasmparser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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.
#
Expand Down

0 comments on commit 5752b1c

Please sign in to comment.