Skip to content

Commit a4012c6

Browse files
authored
Merge pull request #17 from RossWilliams/fix/drop-wee-alloc
fix: drop wee malloc to remove memory leaks
2 parents 815c569 + 81d69f0 commit a4012c6

File tree

3 files changed

+4
-62
lines changed

3 files changed

+4
-62
lines changed

Cargo.lock

Lines changed: 3 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "Apache-2.0"
1111
crate-type = ["cdylib", "rlib"]
1212

1313
[features]
14-
default = ["wee_alloc", "console_error_panic_hook"]
14+
default = ["console_error_panic_hook"]
1515

1616
[profile.release]
1717
lto = true
@@ -20,7 +20,6 @@ opt-level = 's'
2020
[dependencies]
2121
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
2222
brotli = "3.3"
23-
wee_alloc = { version = "0.4", optional = true }
2423
console_error_panic_hook = { version = "0.1", optional = true }
2524
serde = { version = "1.0", features = ["derive"] }
2625
serde_json = { version = "1.0" }

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ use brotli;
44
use wasm_bindgen::prelude::*;
55
use serde::{Serialize, Deserialize};
66

7-
#[cfg(feature = "wee_alloc")]
8-
#[global_allocator]
9-
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
10-
117
pub fn set_panic_hook() {
128
#[cfg(feature="console_error_panic_hook")]
139
console_error_panic_hook::set_once();

0 commit comments

Comments
 (0)