lfrlock 0.3.0

A Lock-Free Read Lock where reads never block and writes are serialized using Mutex
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"
name = "lfrlock"
version = "0.3.0"
authors = ["Shao G. <shaogme@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Lock-Free Read Lock where reads never block and writes are serialized using Mutex"
homepage = "https://github.com/shaogme/lfrlock"
documentation = "https://docs.rs/lfrlock"
readme = "README.md"
keywords = [
    "concurrency",
    "lock-free",
    "reader-writer",
    "mutex",
]
categories = [
    "concurrency",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/shaogme/lfrlock"

[features]
default = ["std"]
loom = ["smr-swap/loom"]
parking_lot = [
    "smr-swap/std",
    "dep:parking_lot",
]
spin = [
    "smr-swap/spin",
    "dep:spin",
]
std = ["smr-swap/std"]

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

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

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

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

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

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.smr-swap]
version = "0.10.0"
default-features = false

[dependencies.spin]
version = "0.10"
optional = true

[dev-dependencies.arc-swap]
version = "1.8.2"

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