# 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 = "2021"
rust-version = "1.80"
name = "durability"
version = "0.1.0"
authors = ["Arc <attobop@gmail.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Persistence primitives for segment-based indices: directory, WAL, checkpoints, and formats."
homepage = "https://github.com/arclabs561/durability"
documentation = "https://github.com/arclabs561/durability#readme"
readme = "README.md"
keywords = [
    "persistence",
    "wal",
    "checkpoint",
    "durability",
]
categories = [
    "filesystem",
    "database-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/durability"

[features]
default = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.byteorder]
version = "1.5"

[dependencies.crc32fast]
version = "1.4"

[dependencies.postcard]
version = "1.0"
features = [
    "use-crc",
    "alloc",
    "use-std",
]

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "1.0.69"

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

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

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