storage-engines 0.1.0

四个教学用 KV 存储引擎(LSM 树 / B+ 树 / Bitcask / 纯内存),共享同一套 MVCC 事务层与统一 trait 门面,可在运行时按名字切换引擎。Four educational key-value storage engines behind one MVCC transaction layer and a runtime-selectable trait facade.
# 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"
name = "storage-engines"
version = "0.1.0"
build = false
exclude = [
    "data/",
    ".claude/",
    "bitcask_mvcc_demo/",
    "lsm_mvcc_demo/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "四个教学用 KV 存储引擎(LSM 树 / B+ 树 / Bitcask / 纯内存),共享同一套 MVCC 事务层与统一 trait 门面,可在运行时按名字切换引擎。Four educational key-value storage engines behind one MVCC transaction layer and a runtime-selectable trait facade."
readme = "README.md"
keywords = [
    "storage-engine",
    "lsm-tree",
    "btree",
    "bitcask",
    "mvcc",
]
categories = [
    "database-implementations",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/chjgfg/storage-engines"

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

[[bin]]
name = "bitcask-bench-bulk"
path = "src/bitcask/bin/bench_bulk.rs"

[[bin]]
name = "bitcask-export-kv"
path = "src/bitcask/bin/export_kv.rs"

[[bin]]
name = "bitcask-import-kv"
path = "src/bitcask/bin/import_kv.rs"

[[bin]]
name = "bplus-bench"
path = "src/bplus_tree/bin/bench.rs"

[[bin]]
name = "bplus-export-kv"
path = "src/bplus_tree/bin/export_kv.rs"

[[bin]]
name = "bplus-import-kv"
path = "src/bplus_tree/bin/import_kv.rs"

[[bin]]
name = "lsm-bench-bulk"
path = "src/lsm_tree/bin/bench_bulk.rs"

[[bin]]
name = "lsm-export-kv"
path = "src/lsm_tree/bin/export_kv.rs"

[[bin]]
name = "lsm-import-kv"
path = "src/lsm_tree/bin/import_kv.rs"

[[bin]]
name = "memory-bench"
path = "src/memory/bin/bench.rs"

[[bin]]
name = "memory-export-kv"
path = "src/memory/bin/export_kv.rs"

[[bin]]
name = "memory-import-kv"
path = "src/memory/bin/import_kv.rs"

[[bin]]
name = "storage-engines"
path = "src/main.rs"

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

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

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

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

[dependencies.bincode]
version = "1.3"

[dependencies.fs4]
version = "0.8.2"

[dependencies.log]
version = "0.4.21"

[dependencies.memmap2]
version = "0.9"

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

[profile.release]
lto = true
codegen-units = 1