mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Follow-up to: - https://github.com/sigp/lighthouse/pull/7764 The `heaptrack` feature added in my previous PR was ineffective, because the jemalloc feature was turned on by the Linux target-specific dependency. This PR tweaks the features such that: - The jemalloc feature is just used to control whether jemalloc is compiled in. It is enabled on Linux by the target-specific dependency (see `lighthouse/Cargo.toml`), and completely disabled on Windows. - If the `sysmalloc` feature is set on Linux then it overrides jemalloc when selecting an allocator, _even if_ the jemalloc feature is enabled (and the jemalloc dep was compiled).
51 lines
1.5 KiB
TOML
51 lines
1.5 KiB
TOML
[package]
|
|
name = "lcli"
|
|
description = "Lighthouse CLI (modeled after zcli)"
|
|
version = "7.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[package.metadata.cargo-udeps.ignore]
|
|
normal = ["malloc_utils"]
|
|
|
|
[features]
|
|
portable = ["bls/supranational-portable"]
|
|
fake_crypto = ['bls/fake_crypto']
|
|
|
|
[dependencies]
|
|
account_utils = { workspace = true }
|
|
beacon_chain = { workspace = true }
|
|
bls = { workspace = true }
|
|
clap = { workspace = true }
|
|
clap_utils = { workspace = true }
|
|
deposit_contract = { workspace = true }
|
|
environment = { workspace = true }
|
|
eth2 = { workspace = true }
|
|
eth2_network_config = { workspace = true }
|
|
eth2_wallet = { workspace = true }
|
|
ethereum_hashing = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
execution_layer = { workspace = true }
|
|
hex = { workspace = true }
|
|
lighthouse_network = { workspace = true }
|
|
lighthouse_version = { workspace = true }
|
|
log = { workspace = true }
|
|
rayon = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde_yaml = { workspace = true }
|
|
snap = { workspace = true }
|
|
state_processing = { workspace = true }
|
|
store = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
tree_hash = { workspace = true }
|
|
types = { workspace = true }
|
|
validator_dir = { workspace = true }
|
|
|
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
|
malloc_utils = { workspace = true, features = ["jemalloc"] }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
malloc_utils = { workspace = true, features = [] }
|