zeropool 0.7.0

A user-space byte allocator with size-class bucketing, lock-free shared pool, and thread-local caching
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "zeropool"
version = "0.7.0"
authors = ["Botir Khaltaev"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A user-space byte allocator with size-class bucketing, lock-free shared pool, and thread-local caching"
readme = "README.md"
keywords = [
    "allocator",
    "buffer",
    "pool",
    "performance",
    "lock-free",
]
categories = [
    "memory-management",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/botirk38/zeropool"

[features]
bench = [
    "dep:sharded-slab",
    "dep:bytes",
    "dep:object-pool",
    "dep:opool",
]
default = []

[lib]
name = "zeropool"
path = "src/lib.rs"

[[bench]]
name = "pool"
path = "benches/pool.rs"
harness = false

[dependencies.bytes]
version = "1.5"
optional = true

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.object-pool]
version = "0.6"
optional = true

[dependencies.opool]
version = "0.2.0"
optional = true

[dependencies.region]
version = "3.0"

[dependencies.sharded-slab]
version = "0.1"
optional = true

[dev-dependencies.criterion]
version = "0.7"

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
inline_always = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninit_vec = "allow"

[lints.clippy.all]
level = "warn"
priority = -2

[lints.clippy.cargo]
level = "warn"
priority = -2

[lints.clippy.complexity]
level = "warn"
priority = -2

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.missing_safety_doc]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -2

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.clippy.undocumented_unsafe_blocks]
level = "deny"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "allow"

[lints.rust.unused]
level = "warn"
priority = -2