diff options
author | Melody Horn <melody@boringcactus.com> | 2021-12-04 18:41:17 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-12-04 18:41:17 -0700 |
commit | def3018a26189fdf56f9776f8b7c06ea681f0577 (patch) | |
tree | 56e68e235d2c65bc805bfa6eb7a6bb6e2a24d533 | |
parent | e0bf354bb6301761146d3025bdc6176c33877790 (diff) | |
download | queue-go-brrr-def3018a26189fdf56f9776f8b7c06ea681f0577.tar.gz queue-go-brrr-def3018a26189fdf56f9776f8b7c06ea681f0577.zip |
saving 5 KB isn't worth it
-rw-r--r-- | Cargo.toml | 7 | ||||
-rw-r--r-- | src/lib.rs | 6 |
2 files changed, 0 insertions, 13 deletions
@@ -44,13 +44,6 @@ web-sys = { version = "0.3.55", features = [ # code size when deploying. console_error_panic_hook = "0.1.6" -# `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 } - [dev-dependencies] wasm-bindgen-test = "0.3.13" @@ -15,12 +15,6 @@ mod ocr; use history::{History, NoETA}; -// 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; - async fn blob_to_image(blob: Blob) -> DynamicImage { let image_data = gloo::file::futures::read_as_bytes(&blob.into()) .await |