Skip to content

Commit

Permalink
nuke allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Dec 17, 2024
1 parent e55a3f5 commit 19a6d78
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 10 deletions.
67 changes: 57 additions & 10 deletions rewriter/Cargo.lock

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

1 change: 1 addition & 0 deletions rewriter/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rewriter = { version = "0.1.0", path = "../rewriter", default-features = false }
thiserror = "2.0.6"
wasm-bindgen = "0.2.99"
web-sys = { version = "0.3.76", features = ["Url"] }
wee_alloc = "0.4.5"

[features]
default = ["debug"]
Expand Down
3 changes: 3 additions & 0 deletions rewriter/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pub mod error;

#[global_allocator]
static ALLOCATOR: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

use std::{sync::Arc, time::Duration};

use error::{Result, RewriterError};
Expand Down

0 comments on commit 19a6d78

Please sign in to comment.