From 4455d95abc19151ec7414600efd8ea92abc58929 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 5 Nov 2022 11:35:01 +0800 Subject: [PATCH] Fix no-std by limiting ahash to 0.8.0. --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3999b7de..4db19d3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,8 @@ categories = ["no-std", "embedded", "wasm", "parser-implementations"] [dependencies] smallvec = { version = "1.7", default-features = false, features = ["union", "const_new", "const_generics"] } -ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] } +# 0.8.1 pulls in `getrandom/js` which breaks no-std +ahash = { version = "=0.8.0", default-features = false, features = ["compile-time-rng"] } num-traits = { version = "0.2", default-features = false } bitflags = { version = "1", default-features = false } smartstring = { version = "1", default-features = false }