Cargo Features
[dependencies]
happylock = { version = "0.3.0", default-features = false, features = ["spin", "parking_lot"] }
- default = parking_lot
-
The
parking_lot
feature is set by default wheneverhappylock
is added without
somewhere in the dependency tree.default-features = false
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- spin implicit feature
-
Enables spin
spin:
Spin-based synchronization primitives
Affects
mutex::SpinLock
,rwlock::SpinRwLock
… - parking_lot default
-
Affects
happylock::Mutex
,happylock::RwLock
,mutex::ParkingMutex
,rwlock::ParkingRwLock
…