zeropool 0.4.0

High-performance buffer pool with constant-time allocation, thread-safe operations, and 5x speedup over bytes crate
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.4.0"
authors = ["Botir Khaltaev"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance buffer pool with constant-time allocation, thread-safe operations, and 5x speedup over bytes crate"
readme = "README.md"
keywords = [
    "buffer",
    "pool",
    "io",
    "performance",
    "zero-copy",
]
categories = [
    "memory-management",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/botirk38/zeropool"

[features]
default = []
tokio-uring = ["dep:tokio-uring"]

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

[[example]]
name = "profile_hotpath"
path = "examples/profile_hotpath.rs"

[[example]]
name = "profile_mt"
path = "examples/profile_mt.rs"

[[example]]
name = "test_config"
path = "examples/test_config.rs"

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

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

[dependencies.region]
version = "3.0"

[dev-dependencies.bytes]
version = "1.5"

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

[dev-dependencies.deadpool]
version = "0.12"

[dev-dependencies.lifeguard]
version = "0.6"

[dev-dependencies.object-pool]
version = "0.6"

[dev-dependencies.sharded-slab]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]

[target.'cfg(target_os = "linux")'.dependencies.tokio-uring]
version = "0.5"
optional = true

[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"

[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.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 = "warn"
unused = "warn"