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

3
Cargo.lock generated
View File

@ -5774,7 +5774,6 @@ dependencies = [
"humantime",
"hyper",
"itertools 0.12.0",
"jemalloc-ctl",
"jemallocator",
"jsonrpsee",
"metrics",
@ -6457,6 +6456,8 @@ dependencies = [
"futures",
"humantime",
"hyper",
"jemalloc-ctl",
"jemallocator",
"jsonrpsee",
"metrics",
"metrics-exporter-prometheus",

View File

@ -113,7 +113,6 @@ boyer-moore-magiclen = "0.2.16"
[target.'cfg(not(windows))'.dependencies]
jemallocator = { version = "0.5.0", optional = true }
jemalloc-ctl = { version = "0.5.0", optional = true }
[dev-dependencies]
jsonrpsee.workspace = true
@ -124,7 +123,7 @@ default = ["jemalloc"]
asm-keccak = ["reth-primitives/asm-keccak"]
jemalloc = ["dep:jemallocator", "dep:jemalloc-ctl"]
jemalloc = ["dep:jemallocator", "reth-node-core/jemalloc"]
jemalloc-prof = ["jemalloc", "jemallocator?/profiling"]
min-error-logs = ["tracing/release_max_level_error"]

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"] }