[package]
edition = "2021"
rust-version = "1.75"
name = "mod-alloc"
version = "0.9.1"
authors = ["James Gober <me@jamesgober.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Allocation profiling for Rust. Counters, peak resident, and call-site grouping with inline backtrace capture. Zero external dependencies in the hot path. Lean dhat replacement targeting MSRV 1.75."
homepage = "https://github.com/jamesgober/mod-alloc"
documentation = "https://docs.rs/mod-alloc"
readme = "README.md"
keywords = [
"memory-profiling",
"allocator",
"profiler",
"heap",
"alloc",
]
categories = [
"development-tools::profiling",
"memory-management",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/mod-alloc"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
backtraces = ["std"]
counters = ["std"]
default = [
"std",
"counters",
]
dhat-compat = [
"std",
"backtraces",
]
std = []
[lib]
name = "mod_alloc"
path = "src/lib.rs"
[[example]]
name = "backtraces"
path = "examples/backtraces.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "bench_overhead"
path = "examples/bench_overhead.rs"
[[test]]
name = "backtrace_concurrent"
path = "tests/backtrace_concurrent.rs"
[[test]]
name = "backtrace_fuzz"
path = "tests/backtrace_fuzz.rs"
[[test]]
name = "backtrace_real_chain"
path = "tests/backtrace_real_chain.rs"
[[test]]
name = "concurrent_alloc"
path = "tests/concurrent_alloc.rs"
[[test]]
name = "counters_accuracy"
path = "tests/counters_accuracy.rs"
[[test]]
name = "profiler_delta"
path = "tests/profiler_delta.rs"
[[test]]
name = "reentrancy"
path = "tests/reentrancy.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies]
[dev-dependencies]
[profile.release]
opt-level = 3
lto = "thin"