Skip to content

Commit

Permalink
feat: disable wee alloc, no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Jan 1, 2025
1 parent 3be0072 commit 54bff08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 64 deletions.
65 changes: 9 additions & 56 deletions packages/ridb-wasm/Cargo.lock

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

3 changes: 1 addition & 2 deletions packages/ridb-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ log = "0.4.20"
wasm-bindgen = { version = "0.2.90", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.40"
console_error_panic_hook = { version = "0.1.1", optional = true }
wee_alloc = { version = "0.4.5", optional = true }
js-sys = {version="0.3.69", features = []}
serde = { version = "1.0.195", features = ["derive"] }
serde-wasm-bindgen = "0.6.3"
Expand Down Expand Up @@ -40,7 +39,7 @@ typescript = true
wasm-opt = false

[features]
default = ["console_error_panic_hook", 'wee_alloc']
default = ["console_error_panic_hook"]
browser = []
node = []

Expand Down
6 changes: 0 additions & 6 deletions packages/ridb-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ pub fn main_js() -> Result<(), JsValue> {
Ok(())
}

// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen]
pub fn is_debug_mode() -> bool {
get_debug_mode()
Expand Down

0 comments on commit 54bff08

Please sign in to comment.