[package]
edition = "2021"
rust-version = "1.82"
name = "powercut"
version = "0.1.1"
build = false
exclude = [
".github/",
"TODO-BEFORE-PUBLISH.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Prove an acknowledged write survives a power cut or process crash, in cargo test. A database-agnostic crash-injection harness that derives the durable set from the fsyncs that actually happened."
homepage = "https://github.com/Cservin69/powercut"
documentation = "https://docs.rs/powercut"
readme = "README.md"
keywords = [
"durability",
"fsync",
"crash-consistency",
"fault-injection",
"power-loss",
]
categories = [
"development-tools::testing",
"database",
"filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Cservin69/powercut"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "powercut"
path = "src/lib.rs"
[[example]]
name = "generic_file_store"
path = "examples/generic_file_store.rs"
[[example]]
name = "read_fork_close_tear"
path = "examples/read_fork_close_tear.rs"
[[example]]
name = "redb_backend"
path = "examples/redb_backend.rs"
[[example]]
name = "sqlite_durable_ack"
path = "examples/sqlite_durable_ack.rs"
[[test]]
name = "baseline_ratchet"
path = "tests/baseline_ratchet.rs"
[[test]]
name = "baseline_update_env"
path = "tests/baseline_update_env.rs"
[[test]]
name = "harness_detects_loss"
path = "tests/harness_detects_loss.rs"
[dependencies]
[dev-dependencies.redb]
version = "2"
[dev-dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[lints.clippy]
must_use_candidate = "warn"
uninlined_format_args = "warn"
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"