lsm-db 1.0.0

Log-structured merge-tree storage engine for Rust. Memtable, leveled SSTables, background compaction, and bloom-filtered point reads over a durable wal-db log. A composable storage engine for embedded databases and Hive DB.
Documentation
# 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 = "lsm-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Log-structured merge-tree storage engine for Rust. Memtable, leveled SSTables, background compaction, and bloom-filtered point reads over a durable wal-db log. A composable storage engine for embedded databases and Hive DB."
homepage = "https://github.com/jamesgober/lsm-db"
documentation = "https://docs.rs/lsm-db"
readme = "README.md"
keywords = [
    "lsm-tree",
    "storage-engine",
    "database",
    "compaction",
    "key-value",
]
categories = [
    "database-implementations",
    "data-structures",
    "filesystem",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/lsm-db"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bloom = [
    "dep:bloom-lib",
    "dep:postcard",
]
default = ["std"]
durability = ["dep:wal-db"]
std = []

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

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

[[example]]
name = "bloom_point_reads"
path = "examples/bloom_point_reads.rs"
required-features = ["bloom"]

[[example]]
name = "durable_store"
path = "examples/durable_store.rs"
required-features = ["durability"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bloom-lib]
version = "1.0"
features = [
    "std",
    "serde",
]
optional = true
default-features = false

[dependencies.crc32c]
version = "0.6"

[dependencies.error-forge]
version = "1.0"
default-features = false

[dependencies.postcard]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.wal-db]
version = "1.0"
optional = true
default-features = false

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

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

[dev-dependencies.redb]
version = "2"

[dev-dependencies.sled]
version = "0.34"

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

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

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

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"