Cargo Features
[dependencies]
synchronized = { version = "1.0.4", default-features = false, features = ["get_point_name", "point", "std", "async", "parking_lot"] }
- default = get_point_name, point, std
-
These default features are set whenever
synchronized
is added without
somewhere in the dependency tree.default-features = false - get_point_name default
-
Ability to get the name of the synchronization point.
Affects
core::SyncPointName
… - point default
-
Adds or removes support for the
synchronized_point
macro. - std default
-
Use synchronization primitives from
std
. Note that is_lock is not supported in it.Note that you can just use
parking_lot
instead ofstd
.Affects
synchronized::beh.std
… - async = async-trait, tokio
-
The synchronization primitive is implemented using the
tokio
+parking_lot
library for an asynchronous environment.Affects
synchronized::beh.r#async
…
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.
- parking_lot implicit feature
-
Enables parking_lot
The synchronization primitive is implemented using the
parking_lot
library.Affects
synchronized::beh.pl
… - tokio async?
-
Enables tokio
The synchronization primitive is implemented using the
tokio
+parking_lot
library. - async-trait async?