[package]
edition = "2024"
rust-version = "1.96"
name = "mvcc-core"
version = "0.1.0"
authors = ["Danylo Kravchenko <danylo.kravchenko.r@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multi-version concurrency control for ordinary Rust structs. Add #[derive(Mvcc)] and get snapshot-isolated transactions with pluggable isolation levels."
readme = "README.md"
keywords = [
"mvcc",
"database",
"transactions",
"concurrency",
"isolation",
]
categories = [
"database-implementations",
"concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danylokravchenko/mvcc"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["derive"]
derive = ["dep:mvcc-derive"]
[lib]
name = "mvcc"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "concurrent"
path = "examples/concurrent.rs"
[[example]]
name = "game"
path = "examples/game.rs"
[[example]]
name = "isolation"
path = "examples/isolation.rs"
[[test]]
name = "concurrent_stress"
path = "tests/concurrent_stress.rs"
[[test]]
name = "examples_run"
path = "tests/examples_run.rs"
[[test]]
name = "hermitage"
path = "tests/hermitage.rs"
[[test]]
name = "isolation_anomalies"
path = "tests/isolation_anomalies.rs"
[[test]]
name = "public_api"
path = "tests/public_api.rs"
[[bench]]
name = "reclamation"
path = "benches/reclamation.rs"
harness = false
[[bench]]
name = "retention"
path = "benches/retention.rs"
harness = false
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[dependencies.crossbeam-epoch]
version = "0.9.20"
[dependencies.mvcc-derive]
version = "0.1.0"
optional = true
[dependencies.parking_lot]
version = "0.12.5"
[lints.clippy]
cognitive_complexity = "warn"
decimal_literal_representation = "warn"
doc_markdown = "warn"
explicit_iter_loop = "warn"
fn_params_excessive_bools = "warn"
large_stack_arrays = "warn"
many_single_char_names = "warn"
match_same_arms = "warn"
needless_pass_by_value = "warn"
redundant_closure_for_method_calls = "warn"
struct_excessive_bools = "warn"
struct_field_names = "warn"
too_many_lines = "warn"
unreadable_literal = "warn"
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"