[package]
name = "nearest"
version = "0.3.1"
edition.workspace = true
rust-version.workspace = true
license = "Apache-2.0 OR MIT"
description = "Self-relative pointer library for region-based allocation"
repository = "https://github.com/uael/nearest"
homepage = "https://github.com/uael/nearest"
documentation = "https://docs.rs/nearest"
readme = "../README.md"
keywords = ["self-relative", "pointer", "region", "allocation", "arena"]
categories = ["data-structures", "memory-management"]
[features]
default = ["alloc"]
alloc = []
std = ["alloc"]
serde = ["dep:serde"]
[dependencies]
nearest-derive = { version = "=0.3.1", path = "../nearest-derive" }
serde = { version = "1", optional = true, default-features = false, features = ["alloc"] }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
serde_json = "1"
trybuild = "1"
[[bench]]
name = "region"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints]
workspace = true