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 default-features = false somewhere in the dependency tree.

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 of std.

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?