Skip to content

Commit da9e083

Browse files
skordclaude
andauthored
Remove unmaintained wee_alloc dependency (#2245)
* Remove unmaintained wee_alloc dependency Switch flow-web crate from wee_alloc to Rust's default allocator for wasm32 targets. The wee_alloc crate is unmaintained and the default allocator now provides better performance and maintenance. Changes: - Remove wee_alloc dependency from workspace Cargo.toml - Remove wee_alloc feature from flow-web/Cargo.toml - Remove wee_alloc global allocator setup from flow-web/src/lib.rs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * bump flow-web version to 0.5.15 * update cargo.lock --------- Co-authored-by: Claude <[email protected]>
1 parent 43e35ec commit da9e083

File tree

4 files changed

+2
-33
lines changed

4 files changed

+2
-33
lines changed

Cargo.lock

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ validator = { version = "0.15", features = ["derive"] }
212212
quickcheck = "1.0"
213213
quickcheck_macros = "1.0"
214214
wasm-bindgen = "0.2.100"
215-
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
216-
# compared to the default allocator's ~10K. It is slower than the default
217-
# allocator, however. It is an optional dependency for WASM modules.
218-
wee_alloc = { version = "0.4" }
219215
xxhash-rust = { version = "0.8", features = ["xxh3"] }
220216
yaml-merge-keys = { version = "0.5", features = ["serde_yaml"] }
221217
zip = "0.5"

crates/flow-web/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "flow-web"
33

44
# wasm-pack isn't yet fully compatible with workspace inheritance, so we can't use that for these fields
5-
version = "0.5.14"
5+
version = "0.5.15"
66
authors = ["Estuary developers <[email protected]>"]
77
edition = "2021"
88
license = "BSL"
@@ -49,9 +49,6 @@ serde-wasm-bindgen = { workspace = true }
4949
# `console_error_panic_hook` pulls in the Rust panic machinery to cause any panics to get
5050
# logged using `console.error`. It is enabled by default.
5151
console_error_panic_hook = { workspace = true, optional = true }
52-
# This is a smaller (in terms of compiled code size) allocator that we _might_
53-
# try to use to keep the WASM module small. It is disabled by default.
54-
wee_alloc = { workspace = true, optional = true }
5552

5653
# this is not a workspace dependency because it's only a transitive dependency, and it's only included here
5754
# because we need to enable the "js" feature when building for wasm

crates/flow-web/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ pub mod collection;
1313
pub mod field_selection;
1414
mod utils;
1515

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

2217
#[wasm_bindgen]
2318
extern "C" {

0 commit comments

Comments
 (0)