Move mimalloc allocator init to CLI (#369)
This commit is contained in:
parent
90c601deeb
commit
bcba352603
|
@ -13,10 +13,6 @@ mod args;
|
|||
mod config;
|
||||
mod filterer;
|
||||
|
||||
#[cfg(target_env = "musl")]
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
pub async fn run() -> Result<()> {
|
||||
let mut log_on = false;
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#[cfg(target_env = "musl")]
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> miette::Result<()> {
|
||||
watchexec_cli::run().await
|
||||
|
|
Loading…
Reference in New Issue