enable the jemallocator dependencies only when we are running on linux

This commit is contained in:
Tamo 2021-06-22 14:04:16 +02:00
parent ca9fa329d1
commit d53df8a002
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
3 changed files with 9 additions and 3 deletions

View File

@ -8,7 +8,9 @@ edition = "2018"
anyhow = "1.0.38" anyhow = "1.0.38"
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
heed = "0.10.6" heed = "0.10.6"
jemallocator = "0.3.2"
milli = { path = "../milli" } milli = { path = "../milli" }
stderrlog = "0.5.1" stderrlog = "0.5.1"
structopt = { version = "0.3.21", default-features = false } structopt = { version = "0.3.21", default-features = false }
[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = "0.3.2"

View File

@ -9,9 +9,11 @@ anyhow = "1.0.38"
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
csv = "1.1.5" csv = "1.1.5"
heed = "0.10.6" heed = "0.10.6"
jemallocator = "0.3.2"
milli = { path = "../milli" } milli = { path = "../milli" }
roaring = "0.6.6" roaring = "0.6.6"
serde_json = "1.0.62" serde_json = "1.0.62"
stderrlog = "0.5.1" stderrlog = "0.5.1"
structopt = { version = "0.3.21", default-features = false } structopt = { version = "0.3.21", default-features = false }
[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = "0.3.2"

View File

@ -8,9 +8,11 @@ edition = "2018"
anyhow = "1.0.38" anyhow = "1.0.38"
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] } byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
heed = "0.10.6" heed = "0.10.6"
jemallocator = "0.3.2"
log = "0.4.14" log = "0.4.14"
milli = { path = "../milli" } milli = { path = "../milli" }
serde_json = "1.0.62" serde_json = "1.0.62"
stderrlog = "0.5.1" stderrlog = "0.5.1"
structopt = { version = "0.3.21", default-features = false } structopt = { version = "0.3.21", default-features = false }
[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = "0.3.2"