diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -79,9 +79,11 @@ //! //! # Cargo features //! -//! This crate supports two cargo features: +//! This crate supports three cargo features: //! //! - `owning_ref`: Allows your lock types to be used with the `owning_ref` crate. +//! - `arc_lock`: Enables locking from an `Arc`. This enables types such as `ArcMutexGuard`. Note that this +//! requires the `alloc` crate to be present. //! - `nightly`: Enables nightly-only features. At the moment the only such //! feature is `const fn` constructors for lock types. @@ -93,6 +95,9 @@ #[macro_use] extern crate scopeguard; +#[cfg(feature = "arc_lock")] +extern crate alloc; + /// Marker type which indicates that the Guard type for a lock is `Send`. pub struct GuardSend(()); |