remove wee_alloc code

This commit is contained in:
ゆめ 2023-08-22 21:48:35 -05:00
parent 9a1247ec3d
commit 6a6ebd315e
2 changed files with 0 additions and 10 deletions

View file

@ -20,10 +20,6 @@ unitdc = { path = "../../" }
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
wee_alloc = { version = "0.4.5", optional = true }
serde_json = "1.0.99"
web-sys = { version = "0.3.64", features = ["Window"] }
serde-wasm-bindgen = "0.5.0"

View file

@ -5,12 +5,6 @@ use unitdc::interpreter::{Interpreter, Output};
use utils::set_panic_hook;
use wasm_bindgen::prelude::*;
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
static mut INTERPRETER: Option<Interpreter> = None;
#[wasm_bindgen]