Cargo Features
[dependencies]
synchronized = { version = "1.1.0", default-features = false, features = ["point", "pl", "std", "async"] }
- default = point, std
-
These default features are set whenever
synchronized
is added without
somewhere in the dependency tree.default-features = false - point default
-
Adds or removes support for the
sync_point
macro. - pl = parking_lot
-
Alternative to
std
flag but only uses synchronization primitives fromparking_lot
Affects
beh::pl
… - 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
beh::std
… - async = tokio
-
The synchronization primitive is implemented using the
tokio
+parking_lot
library for an asynchronous environment.Affects
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 pl?
-
Enables parking_lot
The synchronization primitive is implemented using the
parking_lot
library. - tokio async?
-
Enables tokio
The synchronization primitive is implemented using the
tokio
+parking_lot
library.