[package]
edition = "2024"
rust-version = "1.93.0"
name = "nearest"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-relative pointer library for region-based allocation"
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",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/uael/nearest"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
default = ["alloc"]
serde = ["dep:serde"]
std = ["alloc"]
[lib]
name = "nearest"
path = "src/lib.rs"
[[example]]
name = "ecs"
path = "examples/ecs.rs"
[[example]]
name = "expr"
path = "examples/expr.rs"
[[example]]
name = "fs"
path = "examples/fs.rs"
[[example]]
name = "fsm"
path = "examples/fsm.rs"
[[example]]
name = "json"
path = "examples/json.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[bench]]
name = "region"
path = "benches/region.rs"
harness = false
[dependencies.nearest-derive]
version = "=0.3.1"
[dependencies.serde]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cast_possible_truncation = "allow"
dbg_macro = "deny"
missing_safety_doc = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
uninhabited_references = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1