striped_lock/
lib.rs

1// Copyright (c) 2024 Mek101
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at https://mozilla.org/MPL/2.0/.
6//! # [Striped lock](https://alidg.me/blog/2020/1/11/lock-striping) implementation for rust.
7//!
8//! Comes with the `std` and `tokio` features, the former enabled by default.
9mod batch;
10/// Synchronous implementation.
11#[cfg(feature = "std")]
12pub mod std;
13/// Tokio implementation.
14#[cfg(feature = "tokio")]
15pub mod tokio;
16
17pub use batch::KeyBatch;