14 releases (8 breaking)

0.9.0 Jan 29, 2024
0.8.1 Dec 20, 2023
0.8.0 Nov 6, 2023
0.6.0 Feb 1, 2023
0.3.1 Dec 28, 2022

#307 in Concurrency

Download history 80/week @ 2024-02-25 25/week @ 2024-03-03 50/week @ 2024-03-10 28/week @ 2024-03-17 12/week @ 2024-03-24 91/week @ 2024-03-31 13/week @ 2024-04-07 152/week @ 2024-04-14 20/week @ 2024-04-21 22/week @ 2024-04-28 13/week @ 2024-05-05 8/week @ 2024-05-12 23/week @ 2024-05-19 48/week @ 2024-05-26 32/week @ 2024-06-02 15/week @ 2024-06-09

120 downloads per month
Used in 15 crates (3 directly)

Apache-2.0

145KB
3.5K SLoC

txn_lock

A futures-aware read-write lock for Rust which supports transaction-specific versioning


lib.rs:

Utilities to support transactional versioning.

General-purpose locks and usage examples are provided in the [map], queue, scalar, and [set] modules.

More complex transaction locks (e.g. for a relational database) can be constructed using the semaphore module.

Dependencies

~3.5–6MB
~100K SLoC