Cargo Features
Diesel-async has no features set by default.
[dependencies]
diesel-async = { version = "0.5.1", features = ["mysql", "postgres", "sqlite", "sync-connection-wrapper", "async-connection-wrapper", "pool", "r2d2", "bb8", "mobc", "deadpool"] }
- mysql = futures-channel, mysql_async, mysql_common, tokio
-
Enables mysql_backend of diesel
- postgres = tokio, tokio-postgres
-
Enables postgres_backend of diesel and rt of tokio
tokio:
Includes basic task execution capabilities
Affects
diesel-async::pg
,transaction_builder::TransactionBuilder
… - sqlite = sync-connection-wrapper
- sync-connection-wrapper sqlite?
-
Affects
diesel-async::sync_connection_wrapper
… - async-connection-wrapper
-
Affects
diesel-async::async_connection_wrapper
… - pool bb8? deadpool? mobc? r2d2?
-
Affects
diesel-async::pooled_connection
… - r2d2 = pool
- bb8 = pool
-
Enables bb8
Affects
pooled_connection::bb8
… - mobc = pool
-
Enables mobc
Affects
pooled_connection::mobc
… - deadpool = pool
-
Enables deadpool
Affects
pooled_connection::deadpool
…
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.
- futures-channel mysql?
- tokio-postgres postgres?
- tokio async-connection-wrapper? mysql? postgres? sync-connection-wrapper?
-
Affects
async_connection_wrapper::AsyncConnectionWrapper
… - mysql_async mysql?
- mysql_common mysql?
-
Enables mysql_common ^0.32