# 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"
rust-version = "1.85"
name = "nexus-collections"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SLUB allocator backed intrusive collections for low-latency systems"
readme = "README.md"
keywords = [
    "collections",
    "intrusive",
    "slab",
    "low-latency",
    "pre-allocated",
]
categories = ["data-structures"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Abso1ut3Zer0/nexus"
resolver = "2"

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

[[example]]
name = "perf_batched"
path = "examples/perf_batched.rs"

[[example]]
name = "perf_btree"
path = "examples/perf_btree.rs"

[[example]]
name = "perf_codegen"
path = "examples/perf_codegen.rs"

[[example]]
name = "perf_push_hist"
path = "examples/perf_push_hist.rs"

[[example]]
name = "perf_push_stat"
path = "examples/perf_push_stat.rs"

[[example]]
name = "perf_rbtree"
path = "examples/perf_rbtree.rs"

[[example]]
name = "perf_std_btreemap"
path = "examples/perf_std_btreemap.rs"

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

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

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

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

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

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

[dependencies.nexus-slab]
version = "0.11.1"

[dependencies.rand_core]
version = "0.9.3"

[dev-dependencies.hdrhistogram]
version = "7.5"

[dev-dependencies.rand]
version = "0.9.2"

[dev-dependencies.seq-macro]
version = "0.3"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.trybuild]
version = "1.0"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
inline_always = "allow"
manual_range_contains = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
