mirror of
https://github.com/eternal-flame-AD/unitdc-rs.git
synced 2024-11-28 05:16:43 -06:00
remove wee_alloc code
This commit is contained in:
parent
9a1247ec3d
commit
6a6ebd315e
2 changed files with 0 additions and 10 deletions
|
@ -20,10 +20,6 @@ unitdc = { path = "../../" }
|
||||||
# code size when deploying.
|
# code size when deploying.
|
||||||
console_error_panic_hook = { version = "0.1.6", optional = true }
|
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"
|
serde_json = "1.0.99"
|
||||||
web-sys = { version = "0.3.64", features = ["Window"] }
|
web-sys = { version = "0.3.64", features = ["Window"] }
|
||||||
serde-wasm-bindgen = "0.5.0"
|
serde-wasm-bindgen = "0.5.0"
|
||||||
|
|
|
@ -5,12 +5,6 @@ use unitdc::interpreter::{Interpreter, Output};
|
||||||
use utils::set_panic_hook;
|
use utils::set_panic_hook;
|
||||||
use wasm_bindgen::prelude::*;
|
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;
|
static mut INTERPRETER: Option<Interpreter> = None;
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
|
|
Loading…
Reference in a new issue