fix web/wasm build
This commit is contained in:
parent
ef5eb4a465
commit
278268768d
2 changed files with 2 additions and 1 deletions
|
@ -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:"
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue