# 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 = "2021"
name = "slatedb"
version = "0.13.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cloud native embedded storage engine built on object storage."
homepage = "https://slatedb.io"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/slatedb/slatedb"

[features]
all = [
    "aws",
    "azure",
    "compression",
    "gcp",
    "opendal",
    "snappy",
    "zlib",
    "lz4",
    "zstd",
    "wal_disable",
    "foyer",
    "moka",
    "test-util",
]
aws = ["object_store/aws"]
azure = ["object_store/azure"]
bench-internal = []
bencher = [
    "aws",
    "azure",
    "wal_disable",
    "foyer",
]
compaction_filters = []
compression = ["snappy"]
default = [
    "aws",
    "foyer",
]
foyer = ["dep:foyer"]
gcp = ["object_store/gcp"]
lz4 = ["dep:lz4_flex"]
moka = ["dep:moka"]
opendal = [
    "dep:opendal",
    "dep:object_store_opendal",
]
snappy = ["dep:snap"]
test-util = [
    "tokio/test-util",
    "slatedb-common/test-util",
    "slatedb-txn-obj/test-util",
]
wal_disable = []
zlib = ["dep:flate2"]
zstd = ["dep:zstd"]

[lib]
name = "slatedb"
path = "src/lib.rs"
bench = false

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

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

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

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

[[bench]]
name = "block_iterator_v2"
path = "benches/block_iterator_v2.rs"
harness = false
required-features = ["bench-internal"]

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

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

[dependencies.async-channel]
version = "2"

[dependencies.async-trait]
version = "0.1.82"

[dependencies.atomic]
version = "0.6.1"

[dependencies.backon]
version = "1.5.2"

[dependencies.bitflags]
version = "2.9.1"

[dependencies.bytes]
version = "1.7.1"
features = ["serde"]

[dependencies.chrono]
version = "0.4.41"
features = ["serde"]

[dependencies.crc32fast]
version = "1.5.0"

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

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.duration-str]
version = "0.11.2"
features = [
    "serde",
    "time",
]
default-features = false

[dependencies.fail-parallel]
version = "0.5.2"

[dependencies.figment]
version = "0.10.19"
features = [
    "env",
    "json",
    "toml",
    "yaml",
]

[dependencies.flatbuffers]
version = "25.2.10"

[dependencies.flate2]
version = "1.1.2"
optional = true

[dependencies.foyer]
version = "0.22.3"
features = ["serde"]
optional = true

[dependencies.futures]
version = "0.3.30"

[dependencies.log]
version = "0.4.27"

[dependencies.lru]
version = "0.18"

[dependencies.lz4_flex]
version = "0.11.5"
optional = true

[dependencies.moka]
version = "0.12.8"
features = ["future"]
optional = true

[dependencies.object_store]
version = "0.12.3"

[dependencies.object_store_opendal]
version = "0.54.0"
optional = true

[dependencies.once_cell]
version = "1.21.3"

[dependencies.opendal]
version = "0.54.0"
optional = true
default-features = false

[dependencies.ouroboros]
version = "0.18"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.rand]
version = "0.9.2"

[dependencies.rand_xoshiro]
version = "0.7.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.142"

[dependencies.siphasher]
version = "1"

[dependencies.slatedb-common]
version = "0.13.1"
features = ["serde"]

[dependencies.slatedb-txn-obj]
version = "0.13.1"

[dependencies.snap]
version = "1.1.1"
optional = true

[dependencies.sysinfo]
version = "0.35.2"

[dependencies.thiserror]
version = "1.0.63"

[dependencies.thread_local]
version = "1.1.9"

[dependencies.tokio]
version = "1.47.1"
features = [
    "fs",
    "macros",
    "sync",
    "rt",
    "rt-multi-thread",
    "signal",
]

[dependencies.tokio-util]
version = "0.7.16"
features = [
    "rt",
    "join-map",
]
default-features = false

[dependencies.tracing]
version = "0.1.40"
features = ["log"]

[dependencies.ulid]
version = "1.2.1"
features = ["serde"]

[dependencies.url]
version = "2.5.4"

[dependencies.uuid]
version = "1.18.0"
features = [
    "v4",
    "serde",
]

[dependencies.walkdir]
version = "2.3.3"

[dependencies.zstd]
version = "0.13.2"
optional = true

[dev-dependencies.backtrace]
version = "0.3"

[dev-dependencies.bincode]
version = "1"

[dev-dependencies.criterion]
version = "0.5.1"
features = [
    "async_tokio",
    "html_reports",
]

[dev-dependencies.ctor]
version = "0.5.0"

[dev-dependencies.fail-parallel]
version = "0.5.2"
features = ["failpoints"]

[dev-dependencies.figment]
version = "0.10.19"
features = ["test"]

[dev-dependencies.filetime]
version = "0.2"

[dev-dependencies.insta]
version = "1.39.0"

[dev-dependencies.parking_lot]
version = "0.12.4"
features = ["deadlock_detection"]

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

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

[dev-dependencies.slatedb-common]
version = "0.13.1"
features = [
    "serde",
    "test-util",
]

[dev-dependencies.slatedb-txn-obj]
version = "0.13.1"
features = ["test-util"]

[dev-dependencies.tempfile]
version = "3.20.0"

[dev-dependencies.tokio]
version = "1.47.1"
features = ["rt-multi-thread"]

[dev-dependencies.tokio-test]
version = "0.4.4"

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

[target."cfg(not(windows))".dev-dependencies.pprof]
version = "0.14.0"
features = [
    "criterion",
    "protobuf-codec",
]

[lints.rust]
unreachable_pub = "warn"

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = [
    "cfg(dst)",
    "cfg(slow)",
    "cfg(tokio_unstable)",
]
