We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e47946c + b2b2fcc commit 9cc0d51Copy full SHA for 9cc0d51
Cargo.toml
@@ -7,6 +7,9 @@ repository = "https://github.com/ewasm/ewasm-rust-api"
7
description = "ewasm API for Rust"
8
edition = "2018"
9
10
+[dependencies]
11
+wee_alloc = "0.4.4"
12
+
13
[features]
14
default = [ "std" ]
15
std = []
src/lib.rs
@@ -18,6 +18,11 @@
18
/// finish_data(&a.bytes);
19
/// }
20
/// ```
21
+extern crate wee_alloc;
22
23
+#[global_allocator]
24
+static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
25
26
mod native;
27
pub mod types;
28
0 commit comments