bcmalloc 0.1.0

A scalable global allocator that reserves its memory up front, for long-lived, highly concurrent programs.
Documentation
[package]
name = "bcmalloc"
version = "0.1.0"
edition.workspace = true
# The library's minimum, below the workspace's. The `allocator-api` feature needs 1.100.
rust-version = "1.88"
license.workspace = true
repository.workspace = true
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"]

[features]
default = [ "std" ]
# Enables the `#[global_allocator]` front end, which needs thread-local storage from `std`.
std = [ "libc/std" ]
# Exposes the model-checking helpers in `bcmalloc::testing` (used by the fuzz targets).
testing = [ "std" ]
# Counts allocations, frees, slabs and slow-path events per heap, for `Region::metrics` and
# `Bcmalloc::metrics`. The fast paths pay one add each on a cache line they already touch.
metrics = []
# Implements the standard library's `Allocator` trait for `Bcmalloc` and `Heap`, so that a
# collection can allocate from one without it being the global allocator. The trait needs Rust
# 1.100, above the crate's minimum.
allocator-api = []

[dependencies]
libc.workspace = true

[target.'cfg(loom)'.dependencies]
loom = "0.7"

[lints]
workspace = true