# 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.93.0"
name = "spacetimedb-data-structures"
version = "2.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Assorted data structures used in spacetimedb"
readme = "README.md"
license-file = "LICENSE"

[features]
memory-usage = ["dep:spacetimedb-memory-usage"]
serde = [
    "dep:serde",
    "hashbrown/serde",
]

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

[dependencies.ahash]
version = "0.8"
features = ["std"]
default-features = false

[dependencies.crossbeam-queue]
version = "0.3.12"

[dependencies.either]
version = "1.9"

[dependencies.hashbrown]
version = "0.16.1"
features = [
    "equivalent",
    "inline-more",
    "rayon",
    "serde",
]
default-features = false

[dependencies.nohash-hasher]
version = "0.2"

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

[dependencies.smallvec]
version = "1.11"
features = [
    "union",
    "const_generics",
]

[dependencies.spacetimedb-memory-usage]
version = "=2.3.0"
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0.37"

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

[lints.clippy]
result_large_err = "allow"

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