We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wee_alloc
1 parent 4672591 commit fb3962aCopy full SHA for fb3962a
wasm/Cargo.toml
@@ -25,6 +25,7 @@ default-features = false
25
url = "2"
26
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
27
serde = { version = "1.0", features = ["derive"] }
28
+wee_alloc = "0.4"
29
serde_derive = "1"
30
serde_json = "1"
31
wasm/src/lib.rs
@@ -28,6 +28,9 @@ use std::{
};
use wasm_bindgen::prelude::*;
+#[global_allocator]
32
+static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
33
+
34
struct InlineErrorWrapper(rust_inline::InlineError);
35
36
impl From<InlineErrorWrapper> for JsValue {
0 commit comments