# 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"
name = "range-tree-rs"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A range tree implement for slab allocator"
homepage = "https://github.com/NaturalIO/range_tree"
readme = "README.md"
keywords = ["collection"]
categories = [
    "data-structures",
    "no-std",
]
license = "MIT OR Apache-2.0"

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

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

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

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

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

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

[dependencies.embed-collections]
version = ">=0.8"
features = ["btree"]
default-features = false

[dependencies.log]
version = "0"
optional = true

[dependencies.num-traits]
version = "0.2"

[dev-dependencies.captains-log]
version = "0"
features = ["ringfile"]

[dev-dependencies.criterion2]
version = "3.0.2"

[dev-dependencies.log]
version = "0"

[dev-dependencies.rstest]
version = "0"

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