Cargo Features

[dependencies]
happylock = { version = "0.1.5", default-features = false, features = ["spin", "parking_lot"] }
default = parking_lot

The parking_lot feature is set by default whenever happylock is added without default-features = false somewhere in the dependency tree.

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