9 releases (5 breaking)

0.6.0 Feb 1, 2023
0.5.1 Jan 16, 2023
0.4.0 Jan 5, 2023
0.3.3 Jan 3, 2023
0.1.1 Dec 27, 2022

#218 in Concurrency

Download history 105/week @ 2022-12-25 101/week @ 2023-01-01 53/week @ 2023-01-08 64/week @ 2023-01-15 40/week @ 2023-01-22 76/week @ 2023-01-29 65/week @ 2023-02-05 43/week @ 2023-02-12 62/week @ 2023-02-19 17/week @ 2023-02-26 35/week @ 2023-03-05 12/week @ 2023-03-12 28/week @ 2023-03-19

93 downloads per month
Used in 9 crates (2 directly)

Apache-2.0

105KB
2K 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], [scalar], and [set] modules.

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

Dependencies

~2.5–6.5MB
~98K SLoC