Skip to content

Commit 7d2cabc

Browse files
authored
Fix no_std build (#1573)
This fixes a mistake in #1569 where it accidentally broke `no_std` support since the `std` feature of the `serde` crate was still enabled.
1 parent eefb3be commit 7d2cabc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ jobs:
219219
- run: cargo check --no-default-features -p wit-parser --features serde,decoding,wat
220220
- run: cargo check --no-default-features -p wasmparser
221221
- run: cargo check --no-default-features -p wasmparser --target x86_64-unknown-none
222+
- run: cargo check --no-default-features -p wasmparser --target x86_64-unknown-none --features validate,serde
223+
- run: cargo check --no-default-features -p wasmparser --target x86_64-unknown-none --features validate,serde,no-hash-maps
222224
- run: cargo check --no-default-features -p wasmparser --features std
223225
- run: cargo check --no-default-features -p wasmparser --features validate
224226
- run: cargo check --no-default-features -p wasmparser --features no-hash-maps

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ log = "0.4.17"
6868
num_cpus = "1.13"
6969
rand = { version = "0.8.4", features = ["small_rng"] }
7070
rayon = "1.3"
71-
serde = "1.0.166"
71+
serde = { version = "1.0.166", default-features = false, features = ['alloc'] }
7272
serde_derive = "1.0.166"
7373
serde_json = { version = "1" }
7474
wasmtime = { version = "20.0.0", default-features = false, features = ['cranelift', 'component-model', 'runtime', 'gc'] }

0 commit comments

Comments
 (0)