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

point default

Adds or removes support for the sync_point macro.

pl = parking_lot

Alternative to std flag but only uses synchronization primitives from parking_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 of std.

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.