Skip to content

Commit

Permalink
Use standard allocator for wasm (astral-sh#12713)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored and dylwil3 committed Aug 7, 2024
1 parent cc645b1 commit c84439c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 49 deletions.
63 changes: 19 additions & 44 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 crates/red_knot_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ console_log = { workspace = true }
js-sys = { workspace = true }
log = { workspace = true }
wasm-bindgen = { workspace = true }
wee_alloc = "0.4.5"

[dev-dependencies]
wasm-bindgen-test = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions crates/red_knot_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ use ruff_db::system::{
};
use ruff_notebook::Notebook;

// Use `wee_alloc` as the global allocator.
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen(start)]
pub fn run() {
use log::Level;
Expand Down

0 comments on commit c84439c

Please sign in to comment.