[package]
edition = "2024"
rust-version = "1.97.1"
name = "memory-budget"
version = "0.1.13"
authors = ["Jacobus Geluk <jacobus.geluk@dataroad.com>"]
build = "build.rs"
include = [
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"build.rs",
"rust-toolchain.toml",
"rustfmt-toolchain",
"src/**",
"tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Process memory budgeting and adaptive cache-capacity coordination"
documentation = "https://docs.rs/memory-budget"
readme = "README.md"
keywords = [
"memory",
"budget",
"cache",
"rss",
"jemalloc",
]
categories = [
"caching",
"memory-management",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/legra-ai/memory-budget"
[package.metadata.legra-ci.unsupported-features]
windows = [
"jemalloc",
"heap-profiling",
]
[features]
default = []
heap-profiling = ["jemalloc"]
jemalloc = ["dep:tikv-jemalloc-ctl"]
[lib]
name = "memory_budget"
path = "src/lib.rs"
[[test]]
name = "footprint"
path = "tests/footprint.rs"
[[test]]
name = "jemalloc_allocator"
path = "tests/jemalloc_allocator.rs"
[[test]]
name = "reservations"
path = "tests/reservations.rs"
[dependencies.sysinfo]
version = "0.39"
[dependencies.tikv-jemalloc-ctl]
version = "0.7"
features = ["stats"]
optional = true
default-features = false
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"time",
]
default-features = false
[dependencies.tracing]
version = "0.1"
[build-dependencies.rhusky]
version = "2.0.1"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.libc]
version = "0.2"
[target."cfg(unix)".dev-dependencies.libc]
version = "0.2"
[target."cfg(unix)".dev-dependencies.tikv-jemallocator]
version = "0.7"
default-features = false
[lints.clippy]
all = "deny"
[lints.rust]
missing_docs = "deny"