Cargo Features

[dependencies]
leaves = { version = "0.5.0", default-features = false, features = ["mysql", "postgres", "sqlite", "redis", "mongo", "runtime-tokio", "runtime-async-std"] }
default = runtime-tokio

The runtime-tokio feature is set by default whenever leaves is added without default-features = false somewhere in the dependency tree.

mysql = sqlx

Enables mysql of sqlx ^0.3

Affects dao::mysql

postgres = sqlx

Enables postgres of sqlx ^0.3

Affects dao::postgres

sqlite = sqlx

Enables sqlite of sqlx ^0.3

Affects dao::sqlite

redis = darkredis

Affects dao::redis

mongo = bson, mongodb

Affects dao::mongo

runtime-tokio default = tokio

Enables runtime_tokio of darkredis ^0.7, tokio-runtime of mongodb ^1.1.0, runtime-tokio of sqlx ^0.3

runtime-async-std = async-std

Enables runtime_async_std of darkredis ^0.7, async-std-runtime of mongodb ^1.1.0 and runtime-async-std of sqlx ^0.3

sqlx:

Base runtime features without TLS

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](https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html).

tokio runtime-tokio

Enables tokio ^0.2

async-std runtime-async-std?
darkredis redis? runtime-async-std? runtime-tokio

Enables darkredis ^0.7

sqlx mysql? postgres? runtime-async-std? runtime-tokio sqlite?

Enables sqlx ^0.3

mongodb mongo? runtime-async-std? runtime-tokio

Enables mongodb ^1.1.0

bson mongo?

Enables bson ^1.1.0