Skip to content

Commit f76364b

Browse files
committed
fix: drop wee_alloc (security)
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 83de487 commit f76364b

File tree

3 files changed

+3
-64
lines changed

3 files changed

+3
-64
lines changed

wit-bindgen-wasm/Cargo.lock

Lines changed: 2 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wit-bindgen-wasm/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ license = "Apache-2.0 WITH LLVM-exception"
99
crate-type = ["cdylib"]
1010

1111
[features]
12-
default = ["console_error_panic_hook", "wee_alloc"]
12+
default = ["console_error_panic_hook"]
1313
console_error_panic_hook = ["dep:console_error_panic_hook"]
14-
wee_alloc = ["dep:wee_alloc"]
1514

1615
[dependencies]
1716
wasm-bindgen = "0.2.108"
18-
wee_alloc = { version = "0.4.5", optional = true }
1917
console_error_panic_hook = { version = "0.1.7", optional = true }
2018
serde_json = "1.0"
2119
wasmparser = { version = "0.244", features = ["component-model"] }

wit-bindgen-wasm/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ use wit_bindgen_csharp as csharp;
1616
use wit_bindgen_moonbit as moonbit;
1717
use wit_bindgen_markdown as markdown;
1818

19-
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
20-
// allocator.
21-
#[cfg(feature = "wee_alloc")]
22-
#[global_allocator]
23-
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
24-
2519
/// Initialize the panic hook for better error messages in development
2620
#[wasm_bindgen(start)]
2721
pub fn main() {

0 commit comments

Comments
 (0)