summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6d58135..c99c68b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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(());