# 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.92.0"
name = "masstree"
version = "0.4.7"
authors = ["consistent-milk12"]
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance concurrent ordered map (trie of B+trees)"
documentation = "https://docs.rs/masstree"
readme = "README.md"
keywords = [
    "data-structures",
    "concurrent",
    "ordered-map",
    "range-scans",
    "trie",
]
categories = [
    "data-structures",
    "concurrency",
    "database-implementations",
]
license = "MIT"
repository = "https://github.com/consistent-milk12/masstree"

[features]
bins = [
    "dep:serde_json",
    "dep:serde",
    "dep:chrono",
    "dep:clap",
    "dep:comfy-table",
    "dep:regex",
]
debug-routing = []
default = []
mimalloc = ["dep:mimalloc"]
tracing = [
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:tracing-appender",
]
true-inline = []

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

[dependencies.arrayvec]
version = "0.7.6"

[dependencies.chrono]
version = "0.4.42"
optional = true

[dependencies.clap]
version = "4.5.54"
features = ["derive"]
optional = true

[dependencies.comfy-table]
version = "7.2.1"
optional = true

[dependencies.mimalloc]
version = "0.1.48"
optional = true

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.portable-atomic]
version = "1.13.0"

[dependencies.regex]
version = "1.12.2"
optional = true

[dependencies.rustc-hash]
version = "2.1.1"

[dependencies.seize]
version = "0.5.1"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.tracing]
version = "0.1.44"
features = ["attributes"]
optional = true

[dependencies.tracing-appender]
version = "0.2.4"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "env-filter",
    "fmt",
    "json",
]
optional = true

[dev-dependencies.clap]
version = "4.5.54"
features = ["derive"]

[dev-dependencies.congee]
version = "0.4.1"

[dev-dependencies.core_affinity]
version = "0.8.1"

[dev-dependencies.criterion]
version = "0.8.1"
features = [
    "html_reports",
    "csv_output",
    "real_blackbox",
]

[dev-dependencies.crossbeam-epoch]
version = "0.9.18"

[dev-dependencies.crossbeam-skiplist]
version = "0.1.3"

[dev-dependencies.dashmap]
version = "6.1.0"

[dev-dependencies.divan]
version = "0.1.21"

[dev-dependencies.iai-callgrind]
version = "0.16.1"

[dev-dependencies.indexset]
version = "0.12.7"
features = ["concurrent"]

[dev-dependencies.loom]
version = "0.7.2"

[dev-dependencies.papaya]
version = "0.2.3"

[dev-dependencies.proptest]
version = "1.9.0"

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

[dev-dependencies.rand_chacha]
version = "0.9.0"

[dev-dependencies.rayon]
version = "1.11.0"

[dev-dependencies.scc]
version = "3.4.10"

[dev-dependencies.sdd]
version = "4.5.3"

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0.149"

[dev-dependencies.shuttle]
version = "0.8.1"

[dev-dependencies.tokio]
version = "1.49.0"
features = ["full"]

[dev-dependencies.tracing]
version = "0.1.44"
features = ["attributes"]

[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "env-filter",
    "fmt",
    "json",
    "parking_lot",
]

[dev-dependencies.tracing-test]
version = "0.2.5"
features = ["no-env-filter"]

[lints.clippy]
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
panic = "warn"
unwrap_used = "warn"

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

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

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

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "warn"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(loom)",
    "cfg(shuttle)",
]

[lints.rust.unused]
level = "warn"
priority = -1

[profile.bench]
debug = 2
inherits = "release"
strip = false

[profile.dev]
opt-level = 0
debug = 2
debug-assertions = true
overflow-checks = true
incremental = true

[profile.profiling]
lto = false
debug = 2
inherits = "release"
strip = "none"

[profile.profiling.package."*"]
debug = 2

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
debug-assertions = false
panic = "abort"
overflow-checks = false
strip = "symbols"

[profile.release-with-debug]
lto = false
debug = 2
inherits = "release"
strip = "none"
