mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
[cargo-sort is currently failing on CI](https://github.com/sigp/lighthouse/actions/runs/15198128212/job/42746931918?pr=7025), likely due to new checks introduced in version [2.0.0](https://github.com/DevinR528/cargo-sort/releases/tag/v2.0.0). Fixed the errors by running cargo-sort with formatting enabled.
27 lines
809 B
TOML
27 lines
809 B
TOML
[package]
|
|
name = "malloc_utils"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[features]
|
|
mallinfo2 = []
|
|
jemalloc = ["tikv-jemallocator", "tikv-jemalloc-ctl"]
|
|
jemalloc-profiling = ["tikv-jemallocator/profiling"]
|
|
|
|
[dependencies]
|
|
libc = "0.2.79"
|
|
metrics = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
tikv-jemalloc-ctl = { version = "0.6.0", optional = true, features = ["stats"] }
|
|
|
|
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
|
tikv-jemallocator = { version = "0.6.0", optional = true, features = ["stats"] }
|
|
|
|
# Jemalloc's background_threads feature requires Linux (pthreads).
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
tikv-jemallocator = { version = "0.6.0", optional = true, features = [
|
|
"stats",
|
|
"background_threads",
|
|
] }
|