From 18cd4620a9cd7b36ca850aad7024300ce11ca493 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 10 Jan 2022 23:37:01 -0800 Subject: [PATCH] Make parking_lot compile for wasm --- Cargo.lock | 3 +++ components/dada-web/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 388210a2..c629ca29 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -526,6 +526,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", ] [[package]] diff --git a/components/dada-web/Cargo.toml b/components/dada-web/Cargo.toml index fa7eb366..03da11fb 100644 --- a/components/dada-web/Cargo.toml +++ b/components/dada-web/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" [dependencies] async-trait = "0.1.52" eyre = "0.6.5" -parking_lot = "0.11.2" +parking_lot = { version = "0.11.2", features = ["wasm-bindgen"] } wasm-bindgen = "0.2.78" wasm-bindgen-futures = "*"