Just hide mimalloc behind a feature, available for all platforms

This commit is contained in:
Félix Saparelli 2022-07-06 23:33:51 +12:00
parent e66dc60867
commit 63afa5b791
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
2 changed files with 2 additions and 4 deletions

View file

@ -31,6 +31,7 @@ futures-util = { version = "0.3.21", default-features = false }
home = "0.5.3"
log = "0.4.14"
miette = { version = "5.1.0", features = ["fancy-no-backtrace"] }
mimalloc = { version = "0.1.29", default-features = false, optional = true }
once_cell = "1.12.0"
reqwest = { version = "0.11.11", features = ["rustls-tls", "stream"], default-features = false }
scopeguard = "1.1.0"
@ -68,9 +69,6 @@ zstd = { version = "0.10.0", features = ["bindgen", "zstdmt"], default-features
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
guess_host_triple = "0.1.3"
[target.'cfg(any(windows, target_env = "musl"))'.dependencies]
mimalloc = { version = "0.1.29", default-features = false, optional = true }
[features]
default = []
mimalloc = ["dep:mimalloc"]