mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
fix web/wasm build
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user