[package]
edition = "2024"
rust-version = "1.88"
name = "bcmalloc"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A scalable global allocator that reserves its memory up front, for long-lived, highly concurrent programs."
readme = "README.md"
keywords = [
"allocator",
"malloc",
"global-allocator",
"lock-free",
"no-std",
]
categories = [
"memory-management",
"concurrency",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/clabby/bcmalloc"
[features]
allocator-api = []
default = ["std"]
metrics = []
std = ["libc/std"]
testing = ["std"]
[lib]
name = "bcmalloc"
path = "src/lib.rs"
[[test]]
name = "global"
path = "tests/global.rs"
[dependencies.libc]
version = "0.2"
default-features = false
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[lints.clippy]
missing_const_for_fn = "warn"
option_if_let_else = "warn"
redundant_clone = "warn"
undocumented_unsafe_blocks = "warn"
use_self = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(bcmalloc_portable_tls)",
]
[lints.rustdoc]
all = "warn"