Cargo Features
[dependencies]
lock_api = { version = "0.4.12", default-features = false, features = ["nightly", "arc_lock", "atomic_usize", "owning_ref", "serde"] }
- default = atomic_usize
-
The
atomic_usize
feature is set by default wheneverlock_api
is added without
somewhere in the dependency tree.default-features = false - nightly
- arc_lock
-
Affects
mutex::ArcMutexGuard
,remutex::ArcReentrantMutexGuard
,rwlock::ArcRwLockReadGuard
,rwlock::ArcRwLockWriteGuard
,rwlock::ArcRwLockUpgradableReadGuard
… - atomic_usize default
Features from optional dependencies
- owning_ref implicit feature
-
Enables owning_ref
owning_ref:
A library for creating references that carry their owner with them
- serde implicit feature
-
Enables serde
Optional dependency for supporting serde. Optional crates automatically create a feature with the same name as the crate, so if you need serde support, just pass "--features serde" when building this crate.