fix web/wasm build

This commit is contained in:
Emil Ernerfeldt 2020-09-08 09:44:16 +02:00
parent ef5eb4a465
commit 278268768d
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ BUILD=release
rm -rf docs/*.wasm
echo "Build rust:"
# cargo build -p demo_web --target wasm32-unknown-unknown
cargo build --release -p demo_web --target wasm32-unknown-unknown
echo "Generate JS bindings for wasm:"

View file

@ -1,6 +1,6 @@
use std::hash::{Hash, Hasher};
const SIZE: usize = 8 * 1024;
const SIZE: usize = 1024; // must be small for web/WASM build (for unknown reason)
/// Very stupid/simple key-value cache. TODO: improve
#[derive(Clone)]