diff --git a/Cargo.toml b/Cargo.toml index 1b624c3..1475c82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,8 @@ url = "=2.5.7" [target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86_64"), any(target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies] mimalloc = { version = "=0.1.48", optional = true } + +[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86_64"), any(target_os = "linux", target_os = "macos")))'.dependencies] tikv-jemallocator = { version = "=0.6.1", optional = true } [features] diff --git a/src/main.rs b/src/main.rs index 3d9a845..d95fe88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ static GLOBAL: dhat::Alloc = dhat::Alloc; #[cfg(all( feature = "jemalloc", any(target_arch = "aarch64", target_arch = "x86_64"), - any(target_os = "linux", target_os = "macos", target_os = "windows"), + any(target_os = "linux", target_os = "macos"), ))] #[global_allocator] static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;