diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-09-04 20:04:57 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-09-04 20:04:57 -0400 |
commit | b66a92fcc6120781ad5bad06c29f57fa2c919a2c (patch) | |
tree | 8d835317ef4b65bef4db9aaf153f5b29a35d0b04 /webapp/src/main.rs | |
parent | ab68d26c6b16f973642d378900f5e6ac2be221b7 (diff) |
Add some release size optimizations
Diffstat (limited to 'webapp/src/main.rs')
-rw-r--r-- | webapp/src/main.rs | 5 |
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)); |