ws: add mimalloc feature to make it easier to disable it

This commit is contained in:
Joakim Frostegård 2024-01-07 10:41:11 +01:00
parent 3042539101
commit 6e7d36cffc
3 changed files with 8 additions and 5 deletions

View file

@ -1,8 +1,9 @@
use aquatic_common::cli::run_app_with_cli_and_config;
use aquatic_ws::config::Config;
// #[global_allocator]
// static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[cfg(feature = "mimalloc")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main() {
run_app_with_cli_and_config::<Config>(