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

#223 in Concurrency

Download history 25/week @ 2024-09-11 32/week @ 2024-09-18 82/week @ 2024-09-25 29/week @ 2024-10-02 4/week @ 2024-10-09 6/week @ 2024-10-16 10/week @ 2024-10-23 10/week @ 2024-10-30 4/week @ 2024-11-06 3/week @ 2024-11-13 16/week @ 2024-11-20 26/week @ 2024-11-27 35/week @ 2024-12-04 25/week @ 2024-12-11 4/week @ 2024-12-18 9/week @ 2024-12-25

81 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