From d53df8a002fe2a7eda7a6ac5c36276da0d0d9292 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 22 Jun 2021 14:04:16 +0200 Subject: [PATCH] enable the jemallocator dependencies only when we are running on linux --- helpers/Cargo.toml | 4 +++- infos/Cargo.toml | 4 +++- search/Cargo.toml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/helpers/Cargo.toml b/helpers/Cargo.toml index 73c776db0..3a778cdab 100644 --- a/helpers/Cargo.toml +++ b/helpers/Cargo.toml @@ -8,7 +8,9 @@ edition = "2018" anyhow = "1.0.38" byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } heed = "0.10.6" -jemallocator = "0.3.2" milli = { path = "../milli" } stderrlog = "0.5.1" structopt = { version = "0.3.21", default-features = false } + +[target.'cfg(target_os = "linux")'.dependencies] +jemallocator = "0.3.2" diff --git a/infos/Cargo.toml b/infos/Cargo.toml index d526afa1f..8043b9fe8 100644 --- a/infos/Cargo.toml +++ b/infos/Cargo.toml @@ -9,9 +9,11 @@ anyhow = "1.0.38" byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } csv = "1.1.5" heed = "0.10.6" -jemallocator = "0.3.2" milli = { path = "../milli" } roaring = "0.6.6" serde_json = "1.0.62" stderrlog = "0.5.1" structopt = { version = "0.3.21", default-features = false } + +[target.'cfg(target_os = "linux")'.dependencies] +jemallocator = "0.3.2" diff --git a/search/Cargo.toml b/search/Cargo.toml index b9e9731e6..364900b05 100644 --- a/search/Cargo.toml +++ b/search/Cargo.toml @@ -8,9 +8,11 @@ edition = "2018" anyhow = "1.0.38" byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } heed = "0.10.6" -jemallocator = "0.3.2" log = "0.4.14" milli = { path = "../milli" } serde_json = "1.0.62" stderrlog = "0.5.1" structopt = { version = "0.3.21", default-features = false } + +[target.'cfg(target_os = "linux")'.dependencies] +jemallocator = "0.3.2"