# 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"
name = "coordinode-lsm-tree"
version = "5.2.1"
build = "build.rs"
include = [
    "src/**/*",
    "build.rs",
    "LICENSE-APACHE",
    "README.md",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedded LSM-tree storage engine: BuRR filters, zstd dictionary compression, MVCC, range tombstones, merge operators, K/V separation, AES-256-GCM at rest."
homepage = "https://github.com/structured-world/coordinode-lsm-tree"
documentation = "https://docs.rs/coordinode-lsm-tree"
readme = "README.md"
keywords = [
    "lsm-tree",
    "storage",
    "database",
    "embedded",
    "key-value",
]
categories = [
    "data-structures",
    "database-implementations",
    "filesystem",
    "compression",
]
license = "Apache-2.0"
repository = "https://github.com/structured-world/coordinode-lsm-tree"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.cargo-all-features]
denylist = []

[features]
alloc = []
bytes_1 = ["dep:bytes"]
crc32c = ["dep:crc32c"]
default = [
    "std",
    "parallel",
]
encryption = [
    "dep:aes-gcm",
    "dep:chacha20poly1305",
    "dep:rand_chacha",
    "std",
]
io-uring = [
    "dep:io-uring",
    "std",
]
lz4 = [
    "dep:lz4_flex",
    "std",
]
metrics = []
page_ecc = [
    "dep:reed-solomon-simd",
    "std",
]
parallel = [
    "std",
    "dep:rayon",
]
ribbon-serde = ["dep:serde"]
std = [
    "dep:arc-swap",
    "dep:parking_lot",
    "dep:tempfile",
    "rustc-hash/std",
    "varint-rs/std",
]
zstd = [
    "dep:structured-zstd",
    "std",
]

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

[dependencies.aes-gcm]
version = "=0.11.0-rc.4"
features = [
    "aes",
    "rand_core",
]
optional = true

[dependencies.arc-swap]
version = "1.9"
optional = true

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chacha20poly1305]
version = "=0.11.0-rc.3"
features = ["rand_core"]
optional = true

[dependencies.crc32c]
version = "0.6"
optional = true

[dependencies.enum_dispatch]
version = "0.3.13"

[dependencies.hashbrown]
version = "0.16"
features = ["default-hasher"]
default-features = false

[dependencies.libm]
version = "0.2"
default-features = false

[dependencies.log]
version = "0.4.32"

[dependencies.lz4_flex]
version = "0.13.0"
optional = true
default-features = false

[dependencies.once_cell]
version = "1"
features = [
    "race",
    "alloc",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.portable-atomic]
version = "1"
features = ["fallback"]
default-features = false

[dependencies.rand_chacha]
version = "0.10"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.reed-solomon-simd]
version = "3"
optional = true
default-features = false

[dependencies.rustc-hash]
version = "2.1.1"
default-features = false

[dependencies.self_cell]
version = "1.2.0"

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

[dependencies.spin]
version = "0.12"
features = [
    "mutex",
    "spin_mutex",
    "rwlock",
]
default-features = false

[dependencies.structured-zstd]
version = "0.0.34"
features = [
    "std",
    "lsm",
]
optional = true
default-features = false

[dependencies.tempfile]
version = "3.20.0"
optional = true

[dependencies.varint-rs]
version = "2.2.1"
default-features = false

[dependencies.xxhash-rust]
version = "0.8.15"
features = ["xxh3"]

[dev-dependencies.byteorder]
version = "0.1.0"
package = "byteorder-lite"

[dev-dependencies.criterion]
version = "0.8.0"
features = ["html_reports"]

[dev-dependencies.fs_extra]
version = "1.3.0"

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

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

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

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

[dev-dependencies.strum]
version = "0.28.0"
features = ["derive"]

[dev-dependencies.test-log]
version = "0.2.18"

[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7"
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(coverage,coverage_nightly)",
    "cfg(zstd_any)",
]
