From e8d25c9e6e7d5c3a5a14219fc77ea98760cef790 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sun, 10 Mar 2024 19:40:23 -0400 Subject: Make spin and parking lot optional --- src/rwlock.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rwlock.rs') diff --git a/src/rwlock.rs b/src/rwlock.rs index f5f0f2b..259c247 100644 --- a/src/rwlock.rs +++ b/src/rwlock.rs @@ -7,8 +7,10 @@ use lock_api::RawRwLock; use crate::key::Keyable; +#[cfg(feature = "spin")] pub type SpinRwLock = RwLock>; +#[cfg(feature = "parking_lot")] pub type ParkingRwLock = RwLock; pub struct RwLock { -- cgit v1.2.3