summaryrefslogtreecommitdiff
path: root/webapp/src
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src')
-rw-r--r--webapp/src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/src/main.rs b/webapp/src/main.rs
index 633f560..7f22b0f 100644
--- a/webapp/src/main.rs
+++ b/webapp/src/main.rs
@@ -4,6 +4,11 @@ use log::{debug, error, info, warn};
use yew::prelude::*;
pub mod card;
pub mod bridge_engine;
+extern crate wee_alloc;
+
+// Use `wee_alloc` as the global allocator.
+#[global_allocator]
+static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
fn main() {
std::panic::set_hook(Box::new(console_error_panic_hook::hook));