Skip to content

Commit 1f5a914

Browse files
authored
Remove wee_alloc (mitsuhiko#739)
1 parent 6ad9499 commit 1f5a914

File tree

3 files changed

+22
-75
lines changed

3 files changed

+22
-75
lines changed

Cargo.lock

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

minijinja-js/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ js-sys = "0.3.77"
3232
minijinja-contrib = { version = "2.7.0", path = "../minijinja-contrib", features = ["pycompat"] }
3333
serde-wasm-bindgen = "0.6.5"
3434
serde_json = "1.0.139"
35-
wee_alloc = "0.4.5"

minijinja-js/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
#![cfg(target_family = "wasm")]
22
#![allow(non_snake_case)]
33

4-
extern crate wee_alloc;
5-
64
use std::collections::BTreeMap;
75

86
use fragile::Fragile;
97
use js_sys::{Array, Function, Object};
108
use minijinja::{self as mj, Error, ErrorKind, Value};
119
use wasm_bindgen::prelude::*;
1210

13-
#[global_allocator]
14-
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
15-
1611
/// Represents a MiniJinja environment.
1712
#[wasm_bindgen]
1813
#[derive(Clone)]

0 commit comments

Comments
 (0)