Skip to content

Commit

Permalink
remove unmaintained weealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Aug 3, 2023
1 parent 9ca3d3c commit e71e4c3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 43 deletions.
49 changes: 12 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Expand Up @@ -29,7 +29,6 @@ gloo-utils = { version = "0.1.7", features = ["serde"], optional = true }
getrandom = { version = "0.2", features = ["js"], optional = true }
wasm-bindgen = { version = "0.2.63" }
wasm-bindgen-futures = { version ="0.4.37" }
wee_alloc = { version = "0.4.5", optional = true }
js-sys = { version = "0.3.64", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
Expand Down Expand Up @@ -69,7 +68,6 @@ usb = ["dep:hidapi"]
wasm = [
"dep:enum-assoc",
"dep:getrandom",
"dep:wee_alloc",
"dep:js-sys",
"serde",
"dep:web-sys",
Expand Down
4 changes: 0 additions & 4 deletions src/wasm/mod.rs
Expand Up @@ -10,10 +10,6 @@ use thiserror::Error;

use enum_assoc::Assoc;

/// Smaller .wasm binary size by using the wee allocator.
#[cfg(feature = "wasm")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_namespace = console)]
Expand Down

0 comments on commit e71e4c3

Please sign in to comment.