Cargo Features

[dependencies]
dist_lock = { version = "0.0.1", default-features = false, features = ["redis_common", "redis_r2d2", "redis_tokio", "redis_async_std", "diesel_sqlite", "diesel_postgres", "diesel_mysql", "diesel_sqlite_r2d2", "diesel_postgres_r2d2", "diesel_mysql_r2d2", "zookeeper"] }
default = redis_common

The redis_common feature is set by default whenever dist_lock is added without default-features = false somewhere in the dependency tree.

redis_common default redis_r2d2?

Enables redis of dist_lock_codegen, cluster of redis ^0.23.0

redis_r2d2 = r2d2, redis_common

Enables redis of dist_lock_codegen, r2d2 of redis ^0.23.0

redis_tokio = async-trait, crossbeam-utils

Enables async and redis of dist_lock_codegen, cluster-async and tokio-comp of redis ^0.23.0, rt-multi-thread of tokio

redis_async_std = async-std, async-trait, crossbeam-utils

Enables async and redis of dist_lock_codegen, async-std-comp and cluster-async of redis ^0.23.0

diesel_sqlite diesel_sqlite_r2d2?

Enables sqlite of diesel, diesel of dist_lock_codegen

diesel_postgres diesel_postgres_r2d2?

Enables postgres of diesel, diesel of dist_lock_codegen

diesel_mysql diesel_mysql_r2d2?

Enables mysql of diesel, diesel of dist_lock_codegen

diesel_sqlite_r2d2 = diesel_sqlite, r2d2

Enables r2d2 of diesel, diesel of dist_lock_codegen

diesel_postgres_r2d2 = diesel_postgres, r2d2

Enables r2d2 of diesel, diesel of dist_lock_codegen

diesel_mysql_r2d2 = diesel_mysql, r2d2

Enables r2d2 of diesel, diesel of dist_lock_codegen

zookeeper

Enables zookeeper, zookeeper of dist_lock_codegen

Affects provider::zookeeper

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.

dist_lock_codegen diesel_mysql? diesel_mysql_r2d2? diesel_postgres? diesel_postgres_r2d2? diesel_sqlite? diesel_sqlite_r2d2? redis_async_std? redis_common redis_r2d2? redis_tokio? zookeeper?
redis redis_async_std? redis_common redis_r2d2? redis_tokio?

Enables redis ^0.23.0

Affects provider::redis

diesel diesel_mysql? diesel_mysql_r2d2? diesel_postgres? diesel_postgres_r2d2? diesel_sqlite? diesel_sqlite_r2d2?

Affects provider::diesel

tokio redis_tokio?
async-std redis_async_std?
async-trait redis_async_std? redis_tokio?
r2d2 diesel_mysql_r2d2? diesel_postgres_r2d2? diesel_sqlite_r2d2? redis_r2d2?
crossbeam-utils redis_async_std? redis_tokio?