[package]
edition = "2024"
rust-version = "1.85"
name = "arena-lib"
version = "1.0.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"
[[example]]
name = "quick_start"
path = "examples/quick_start.rs"
[[test]]
name = "error"
path = "tests/error.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"