mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
* Replace `lazy_static` with `LazyLock`. * Merge branch 'unstable' into remove-lazy-static # Conflicts: # beacon_node/lighthouse_network/src/peer_manager/mod.rs * Lint fixes. * Merge branch 'unstable' into remove-lazy-static # Conflicts: # beacon_node/beacon_chain/src/metrics.rs * Moar lint fixes. * Update rust version to 1.80.0. * Merge branch 'unstable' into remove-lazy-static
24 lines
757 B
TOML
24 lines
757 B
TOML
[package]
|
|
name = "malloc_utils"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[dependencies]
|
|
lighthouse_metrics = { workspace = true }
|
|
libc = "0.2.79"
|
|
parking_lot = { workspace = true }
|
|
jemalloc-ctl = { version = "0.5.0", optional = true }
|
|
|
|
# Jemalloc's background_threads feature requires Linux (pthreads).
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
jemallocator = { version = "0.5.0", optional = true, features = ["stats", "background_threads"] }
|
|
|
|
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
|
jemallocator = { version = "0.5.0", optional = true, features = ["stats"] }
|
|
|
|
[features]
|
|
mallinfo2 = []
|
|
jemalloc = ["jemallocator", "jemalloc-ctl"]
|
|
jemalloc-profiling = ["jemallocator/profiling"]
|