[package]
name = "range-tree-rs"
version = "0.2.1"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "A range tree implement for slab allocator"
keywords = ["collection"]
categories = ["data-structures", "no-std"]
homepage = "https://github.com/NaturalIO/range_tree"

[dependencies]
embed-collections = {version=">=0.8", features=["btree"], default-features=false}
num-traits = "0.2"
log = { version="0", optional=true}

[dev-dependencies]
criterion2 = { version = "3.0.2"}
captains-log = {version="0", features = ["ringfile"] }
log = { version="0"}
rstest = "0"

[features]
default = ["std"]
std = []
# enable log for dev
trace_log = ["dep:log", "embed-collections/trace_log"]

[package.metadata.docs.rs]
all-features = true
# enable features in the documentation
rustdoc-args = ["--cfg", "docsrs"]

[lints.clippy]
new_ret_no_self = "allow"
needless_range_loop = "allow"
type_complexity = "allow"
mut_from_ref = "allow"
transmute_ptr_to_ref = "allow"
len_without_is_empty = "allow"
new_without_default = "allow"
result_unit_err = "allow"

[[bench]]
name = "range_tree"
harness = false
