Use mimalloc on windows

This commit is contained in:
Félix Saparelli 2022-07-05 23:10:57 +12:00
parent 3348d3d7a2
commit fe724585ae
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
2 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,10 @@ use cargo_binstall::{
*,
};
#[cfg(windows)]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[derive(Debug, Parser)]
#[clap(version, about = "Install a Rust binary... from binaries!")]
struct Options {