# 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 = "subms-lsm-tree"
version = "0.5.2"
authors = ["Kieran Smith <oss@submillisecond.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "submillisecond.com cookbook recipe - storage: subms-lsm-tree. A working LSM tree (memtable, immutable SSTables, bloom-filter trailer) with sub-millisecond reads at p99 on a 50k-entry workload."
homepage = "https://submillisecond.com/cookbook/recipes/subms-lsm-tree"
readme = "README.md"
keywords = [
    "lsm",
    "storage",
    "cookbook",
    "subms",
    "low-latency",
]
categories = [
    "data-structures",
    "database-implementations",
]
license = "MIT OR Apache-2.0"

[features]
block-cache-integration = []
default = []
harness = ["dep:subms"]
leveled-compaction = []
lz4 = ["dep:lz4_flex"]
snapshot = []
tiered-compaction = []
wal = []
zstd = ["dep:zstd"]

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

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

[[example]]
name = "perf_features"
path = "examples/perf_features.rs"
required-features = [
    "harness",
    "wal",
    "tiered-compaction",
    "leveled-compaction",
    "snapshot",
    "lz4",
    "zstd",
    "block-cache-integration",
]

[[example]]
name = "perf_main"
path = "examples/perf_main.rs"
required-features = ["harness"]

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

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

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

[dependencies.subms]
version = "0.5.2"
optional = true

[dependencies.subms-bloom-filter]
version = "0.5.2"

[dependencies.zstd]
version = "0.13"
optional = true
default-features = false
