lock-db 1.0.0

Lock manager and deadlock detection for Rust databases - row/range locks, multiple granularities, and wait-for cycle detection.
Documentation
# 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"
rust-version = "1.85"
name = "lock-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lock manager and deadlock detection for Rust databases - row/range locks, multiple granularities, and wait-for cycle detection."
homepage = "https://github.com/jamesgober/lock-db"
documentation = "https://docs.rs/lock-db"
readme = "README.md"
keywords = [
    "lock-manager",
    "locking",
    "deadlock-detection",
    "concurrency",
    "transactions",
]
categories = [
    "database-implementations",
    "concurrency",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/lock-db"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
serde = ["dep:serde"]
std = []

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

[[example]]
name = "concurrent"
path = "examples/concurrent.rs"
required-features = ["std"]

[[example]]
name = "deadlock"
path = "examples/deadlock.rs"
required-features = ["std"]

[[example]]
name = "hierarchy"
path = "examples/hierarchy.rs"
required-features = ["std"]

[[example]]
name = "quick_start"
path = "examples/quick_start.rs"
required-features = ["std"]

[[example]]
name = "range_locks"
path = "examples/range_locks.rs"
required-features = ["std"]

[[example]]
name = "shared_upgrade"
path = "examples/shared_upgrade.rs"
required-features = ["std"]

[[example]]
name = "two_phase_locking"
path = "examples/two_phase_locking.rs"
required-features = ["std"]

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

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

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

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

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

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

[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"