From c357017decfa0f21ca597a4958745ad0999cf9eb Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Mon, 20 May 2024 09:22:18 -0400 Subject: [PATCH] Export types provided by arc_lock feature. This adds conditional re-exports of the Arc-related types from the lock_api crate. --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 03639a68..bc6531bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,3 +54,6 @@ pub use self::rwlock::{ RwLockUpgradableReadGuard, RwLockWriteGuard, }; pub use ::lock_api; + +#[cfg(feature = "arc_lock")] +pub use self::lock_api::{ArcMutexGuard, ArcReentrantMutexGuard, ArcRwLockReadGuard, ArcRwLockUpgradableReadGuard, ArcRwLockWriteGuard};