Skip to content

Commit

Permalink
fix(web): remove wee_alloc due to memory leak
Browse files Browse the repository at this point in the history
The app crashes with memory corruption and consumes excessive amounts of memory when wee_alloc is enabled. See: rustwasm/wee_alloc#106
  • Loading branch information
ivan-aksamentov committed May 11, 2022
1 parent a512e69 commit 3fe6d4e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion packages_rs/nextclade-web/Cargo.toml
Expand Up @@ -23,7 +23,6 @@ typescript-definitions-derive = { path = "../../3rdparty/typescript-definitions/
wasm-bindgen = { version = "0.2.79", features = ["serde-serialize"] }
wasm-logger = "0.2.0"
web-sys = { version = "0.3.56", features = ["console"] }
wee_alloc = "0.4.5"

[dev-dependencies]
assert2 = "0.3.6"
Expand Down
3 changes: 0 additions & 3 deletions packages_rs/nextclade-web/src/lib.rs
@@ -1,4 +1 @@
mod wasm;

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc<'_> = wee_alloc::WeeAlloc::INIT;

0 comments on commit 3fe6d4e

Please sign in to comment.