Cargo Features
[dependencies]
concurrency_traits = { version = "0.7.2", default-features = false, features = ["std", "alloc", "nightly", "impl_parking_lot", "impl_crossbeam"] }
- default = std
-
These default features are set whenever
concurrency_traits
is added without
somewhere in the dependency tree.default-features = false Enables std of simple_futures
- std default impl_parking_lot? = alloc
-
Affects
concurrency_traits::StdThreadFunctions
,park_mutex::ParkMutexStd
,park_mutex::RawParkMutexStd
,spin_lock::SpinLockStd
,park_queue::ParkQueueStd
… - alloc impl_crossbeam? std = simple_futures
-
Affects
double_ended::AsyncDoubleEndedQueue
,peek::AsyncPeekQueue
,prepend::AsyncPrependQueue
,reverse::AsyncReverseQueue
,reverse::AsyncPeekReverseQueue
,async_timeout::AsyncTimoutUpgradeReadGuard
… - nightly
- impl_parking_lot = parking_lot, std
- impl_crossbeam = alloc, crossbeam
-
crossbeam:
Enable to use APIs that require
alloc
. This is enabled by default and also enabled if thestd
feature is enabled.
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.
- simple_futures default alloc?
- parking_lot impl_parking_lot?
-
Enables parking_lot ^0.11.1
- crossbeam impl_crossbeam?