[package]
edition = "2024"
rust-version = "1.85"
name = "txn-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MVCC transaction engine for Rust storage layers. Snapshot isolation and serializable transactions with multi-version concurrency control, conflict detection, and a durable transaction log on wal-db. The transaction layer for embedded databases and Hive DB."
homepage = "https://github.com/jamesgober/txn-db"
documentation = "https://docs.rs/txn-db"
readme = "README.md"
keywords = [
"mvcc",
"transactions",
"snapshot-isolation",
"database",
"concurrency",
]
categories = [
"database-implementations",
"concurrency",
"data-structures",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/txn-db"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
durability = ["dep:wal-db"]
serializable = []
std = []
[lib]
name = "txn_db"
path = "src/lib.rs"
[[example]]
name = "bank_transfer"
path = "examples/bank_transfer.rs"
[[example]]
name = "concurrent_counter"
path = "examples/concurrent_counter.rs"
[[example]]
name = "custom_store"
path = "examples/custom_store.rs"
[[example]]
name = "durable_store"
path = "examples/durable_store.rs"
required-features = ["durability"]
[[example]]
name = "garbage_collection"
path = "examples/garbage_collection.rs"
[[example]]
name = "quick_start"
path = "examples/quick_start.rs"
[[example]]
name = "serializable_doctors"
path = "examples/serializable_doctors.rs"
required-features = ["serializable"]
[[example]]
name = "snapshot_reads"
path = "examples/snapshot_reads.rs"
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "backing_store"
path = "tests/backing_store.rs"
[[test]]
name = "durability"
path = "tests/durability.rs"
[[test]]
name = "gc"
path = "tests/gc.rs"
[[test]]
name = "loom_txn"
path = "tests/loom_txn.rs"
[[test]]
name = "serializable"
path = "tests/serializable.rs"
[[test]]
name = "snapshot_isolation"
path = "tests/snapshot_isolation.rs"
[[bench]]
name = "comparison"
path = "benches/comparison.rs"
harness = false
[[bench]]
name = "contention"
path = "benches/contention.rs"
harness = false
[[bench]]
name = "txn_bench"
path = "benches/txn_bench.rs"
harness = false
[dependencies.error-forge]
version = "1.0"
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.tempfile]
version = "3"
[target."cfg(loom)".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"