From 8d3c6b16c13ed584a93be6ce61f02a4dea19ff66 Mon Sep 17 00:00:00 2001 From: zetanumbers Date: Sat, 26 Dec 2020 17:17:55 +0300 Subject: [PATCH 1/2] Add web features to the `parking_lot` dependency; Run local-wasm-pack in release mode *for speed*. --- .cargo/config.toml | 4 ++-- Cargo.toml | 2 +- dyn-cache/Cargo.toml | 2 +- topo/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 2e94a3f47..fc9d91ea6 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -77,8 +77,8 @@ watch --clear -x clippy-dom """ -wa-pack = "run --manifest-path dom/local-wasm-pack/Cargo.toml --" -wa-pack-build = "wa-pack build --target web --out-name index" +wa-pack = "run --release --manifest-path dom/local-wasm-pack/Cargo.toml --" +wa-pack-build = "wa-pack build --dev --target web --out-name index" wa-test = "wa-pack test --chrome --headless" build-dom-lib = "wa-pack-build dom" diff --git a/Cargo.toml b/Cargo.toml index fcbf6ddd8..11d4cb2b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ dyn-cache = { path = "dyn-cache", version = "0.12.0"} futures = "0.3.5" illicit = { path = "illicit", version = "1.1.1"} moxie-macros = { path = "macros", version = "0.1.0-pre" } -parking_lot = "0.11" +parking_lot = { version = "0.11", features = ["wasm-bindgen"]} scopeguard = "1" topo = { path = "topo", version = "0.13.0"} tracing = "^0.1" diff --git a/dyn-cache/Cargo.toml b/dyn-cache/Cargo.toml index 9229b855f..928dd7bab 100644 --- a/dyn-cache/Cargo.toml +++ b/dyn-cache/Cargo.toml @@ -18,7 +18,7 @@ downcast-rs = "1.1.1" hash_hasher = "2.0.3" hashbrown = "0.9.0" illicit = { path = "../illicit", version = "1.1.1"} -parking_lot = "0.11.0" +parking_lot = { version = "0.11.0", features = ["wasm-bindgen"]} paste = "1.0.0" [dev-dependencies] diff --git a/topo/Cargo.toml b/topo/Cargo.toml index 9f67177c0..0595821ba 100644 --- a/topo/Cargo.toml +++ b/topo/Cargo.toml @@ -17,7 +17,7 @@ edition = "2018" dyn-cache = { path = "../dyn-cache", version = "0.12.0"} illicit = { path = "../illicit", version = "1.1.1"} once_cell = "1.4.0" -parking_lot = "0.11.0" +parking_lot = { version = "0.11.0", features = ["wasm-bindgen"]} topo-macro = { path = "macro", version = "0.10.0"} [dev-dependencies] From c5fa74e85f949136efbc9dbaeb00d4d4ca60fbc5 Mon Sep 17 00:00:00 2001 From: zetanumbers Date: Sun, 27 Dec 2020 15:50:52 +0300 Subject: [PATCH 2/2] Restore `wa-pack` commands --- .cargo/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index fc9d91ea6..2e94a3f47 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -77,8 +77,8 @@ watch --clear -x clippy-dom """ -wa-pack = "run --release --manifest-path dom/local-wasm-pack/Cargo.toml --" -wa-pack-build = "wa-pack build --dev --target web --out-name index" +wa-pack = "run --manifest-path dom/local-wasm-pack/Cargo.toml --" +wa-pack-build = "wa-pack build --target web --out-name index" wa-test = "wa-pack test --chrome --headless" build-dom-lib = "wa-pack-build dom"