[package]
edition = "2024"
rust-version = "1.88"
name = "stoolap-jemalloc"
version = "0.1.5"
authors = ["Stoolap Contributors"]
build = false
exclude = [
".github/",
"bench/",
"codecov.yml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A jemalloc-style memory allocator written in pure Rust, with a built-in pprof heap profiler"
homepage = "https://github.com/stoolap/stoolap-jemalloc"
documentation = "https://docs.rs/stoolap-jemalloc"
readme = "README.md"
keywords = [
"allocator",
"jemalloc",
"malloc",
"pprof",
"profiling",
]
categories = [
"memory-management",
"development-tools::profiling",
]
license = "Apache-2.0"
repository = "https://github.com/stoolap/stoolap-jemalloc"
[features]
default = ["symbolize"]
symbolize = ["dep:backtrace"]
[lib]
name = "stoolap_jemalloc"
path = "src/lib.rs"
[[test]]
name = "background"
path = "tests/background.rs"
[[test]]
name = "fork"
path = "tests/fork.rs"
[[test]]
name = "fork_dump"
path = "tests/fork_dump.rs"
[[test]]
name = "global"
path = "tests/global.rs"
[[test]]
name = "miri"
path = "tests/miri.rs"
[[test]]
name = "miri_wrapper"
path = "tests/miri_wrapper.rs"
[[test]]
name = "oom"
path = "tests/oom.rs"
[[test]]
name = "prof"
path = "tests/prof.rs"
[[test]]
name = "prof_accuracy"
path = "tests/prof_accuracy.rs"
[[test]]
name = "prof_dlclose"
path = "tests/prof_dlclose.rs"
[[test]]
name = "prof_late_library"
path = "tests/prof_late_library.rs"
[[test]]
name = "prof_realloc"
path = "tests/prof_realloc.rs"
[[test]]
name = "prof_sampling"
path = "tests/prof_sampling.rs"
[[test]]
name = "prof_startup"
path = "tests/prof_startup.rs"
[[test]]
name = "prof_symbol_cache"
path = "tests/prof_symbol_cache.rs"
[[test]]
name = "stats"
path = "tests/stats.rs"
[dependencies.backtrace]
version = "0.3"
optional = true
[dev-dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Diagnostics_Debug",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_ProcessStatus",
"Win32_System_SystemInformation",
"Win32_System_Threading",
]
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
inline_always = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "allow"
[profile.release]
debug = 1