[package]
edition = "2024"
rust-version = "1.85"
name = "wal-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Write-ahead log primitive for Rust storage engines. Durable, recoverable, lock-free append path. The WAL substrate under lsm-db, txn-db, raft-io, and Hive DB."
homepage = "https://github.com/jamesgober/wal-db"
documentation = "https://docs.rs/wal-db"
readme = "README.md"
keywords = [
"wal",
"write-ahead-log",
"database",
"durability",
"recovery",
]
categories = [
"database-implementations",
"filesystem",
"concurrency",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/wal-db"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
pack-io = ["dep:pack-io"]
[lib]
name = "wal_db"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "checkpoint"
path = "examples/checkpoint.rs"
[[example]]
name = "concurrent"
path = "examples/concurrent.rs"
[[example]]
name = "recovery"
path = "examples/recovery.rs"
[[example]]
name = "typed"
path = "examples/typed.rs"
required-features = ["pack-io"]
[[test]]
name = "compaction"
path = "tests/compaction.rs"
[[test]]
name = "durability"
path = "tests/durability.rs"
[[test]]
name = "edge"
path = "tests/edge.rs"
[[test]]
name = "faults"
path = "tests/faults.rs"
[[test]]
name = "hostile"
path = "tests/hostile.rs"
[[test]]
name = "loom_wal"
path = "tests/loom_wal.rs"
[[test]]
name = "round_trip"
path = "tests/round_trip.rs"
[[test]]
name = "segmented"
path = "tests/segmented.rs"
[[test]]
name = "torn_write"
path = "tests/torn_write.rs"
[[bench]]
name = "compare"
path = "benches/compare.rs"
harness = false
[[bench]]
name = "wal_bench"
path = "benches/wal_bench.rs"
harness = false
[dependencies.crc32c]
version = "0.6"
[dependencies.error-forge]
version = "1.0"
default-features = false
[dependencies.pack-io]
version = "1.0"
features = ["derive"]
optional = true
[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"
[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"
[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"