fix: include jemalloc-ctl only in node-core (#6199)

This commit is contained in:
Dan Cline
2024-01-23 21:23:33 -05:00
committed by GitHub
parent f9374d1d71
commit 02c69d0666
3 changed files with 9 additions and 3 deletions

View File

@ -91,6 +91,10 @@ secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recov
# async
futures.workspace = true
[target.'cfg(not(windows))'.dependencies]
jemallocator = { version = "0.5.0", optional = true }
jemalloc-ctl = { version = "0.5.0", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
procfs = { version = "0.16.0" }
@ -124,5 +128,7 @@ optimism = [
"reth-node-api/optimism",
]
jemalloc = ["dep:jemallocator", "dep:jemalloc-ctl"]
[build-dependencies]
vergen = { version = "8.0.0", features = ["build", "cargo", "git", "git2"] }