15 releases (9 breaking)

0.10.0 Aug 13, 2024
0.9.0 Jan 29, 2024
0.8.1 Dec 20, 2023
0.8.0 Nov 6, 2023
0.3.1 Dec 28, 2022

#256 in Concurrency

30 downloads per month
Used in 14 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

~4–10MB
~100K SLoC