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 whenever lock_api is added without default-features = false somewhere in the dependency tree.

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.