From 0cb6e8c6a014474a22c145e7adeb3f34e5e8e57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Desr=C3=A9?= Date: Tue, 30 Aug 2022 12:09:54 -0700 Subject: [PATCH] Stop using weealloc because of https://github.com/rustwasm/wee_alloc/issues/106 --- Cargo.lock | 53 ----------------------------------------------------- Cargo.toml | 1 - src/lib.rs | 3 --- 3 files changed, 57 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a3195bb..99fcbb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,12 +43,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "color_quant" version = "1.1.0" @@ -83,24 +77,12 @@ dependencies = [ "num-traits", ] -[[package]] -name = "libc" -version = "0.2.132" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5" - [[package]] name = "memchr" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" -[[package]] -name = "memory_units" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" - [[package]] name = "num-derive" version = "0.3.3" @@ -168,7 +150,6 @@ version = "0.1.0" dependencies = [ "image", "quircs", - "wee_alloc", "wit-bindgen-guest-rust", ] @@ -280,40 +261,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "wee_alloc" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbb3b5a6b2bb17cb6ad44a2e68a43e8d2722c997da10e928665c72ec6c0a0b8e" -dependencies = [ - "cfg-if", - "libc", - "memory_units", - "winapi", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "wit-bindgen-core" version = "0.2.0" diff --git a/Cargo.toml b/Cargo.toml index 18c86d3..38222c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,6 @@ default = [] [dependencies] image = {version = "0.24", default-features = false} quircs = "*" -wee_alloc = {version = "0.4.5"} wit-bindgen-guest-rust = {git = "https://github.com/bytecodealliance/wit-bindgen.git"} [profile.release] diff --git a/src/lib.rs b/src/lib.rs index 3145f80..33f6300 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,9 +9,6 @@ wit_bindgen_guest_rust::export!("./qrdecoder_module.wit"); use console::Console; -#[global_allocator] -static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; - pub struct QrdecoderModule; impl qrdecoder_module::QrdecoderModule for QrdecoderModule {