arena-lib 0.5.0

Typed memory arena and slab allocator library. Generational indices, typed arenas (one allocation per type), interned strings, and bump allocation. Zero unsafe leakage into user code.
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"
rust-version = "1.85"
name = "arena-lib"
version = "0.5.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed memory arena and slab allocator library. Generational indices, typed arenas (one allocation per type), interned strings, and bump allocation. Zero unsafe leakage into user code."
homepage = "https://github.com/jamesgober/arena-lib"
documentation = "https://docs.rs/arena-lib"
readme = "README.md"
keywords = [
    "arena",
    "allocator",
    "slab",
    "generational",
    "rust",
]
categories = [
    "memory-management",
    "data-structures",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/arena-lib"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
std = []

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

[[test]]
name = "properties"
path = "tests/properties.rs"

[[test]]
name = "smoke"
path = "tests/smoke.rs"

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

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

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

[dependencies.hashbrown]
version = "0.15"
features = [
    "default-hasher",
    "inline-more",
]
default-features = false

[dev-dependencies.criterion]
version = "0.5"
default-features = false

[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 2

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"