diff --git a/Cargo.toml b/Cargo.toml index f95e3c6..0c346bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,13 +26,6 @@ rand_pcg = {version = "0.3.1", optional = true } # 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. -# -# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now. -wee_alloc = { version = "0.4.5", optional = true } - [dependencies.web-sys] version = "0.3.45" features = [ diff --git a/src/lib.rs b/src/lib.rs index b4702a7..e0a7a95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,12 +10,6 @@ use rand_pcg::Pcg64Mcg; mod time; -// 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; - macro_rules! log { ( $( $t:tt )* ) => { web_sys::console::log_1(&format!( $( $t )* ).into());