diff --git a/Cargo.toml b/Cargo.toml index 3cd6dd0..18d6b81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,13 +22,6 @@ wasm-bindgen = "0.2" # code size when deploying. console_error_panic_hook = { version = "0.1.1", 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.2", optional = true } - js-sys = { version = "0.3.37" } web-sys = { version = "0.3", features = ["console"] } diff --git a/README.md b/README.md index 0a04917..95844be 100644 --- a/README.md +++ b/README.md @@ -50,5 +50,3 @@ wasm-pack publish between WebAssembly and JavaScript. * [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook) for logging panic messages to the developer console. -* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized - for small code size. diff --git a/src/lib.rs b/src/lib.rs index 164f917..f067dd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,12 +7,6 @@ use std::cmp::{min}; use js_sys::{ArrayBuffer, Uint8Array}; 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; - #[wasm_bindgen] pub struct BitArray { buffer: ArrayBuffer,