Cargo Features

Benzin has no features set by default.

[dependencies]
benzin = { version = "0.2.0", features = ["mysql", "postgres", "bb8", "deadpool"] }
mysql = mysql_async, mysql_common, tokio

Enables mysql_backend of diesel

Affects benzin::mysql

postgres = tokio, tokio-postgres

Enables postgres_backend of diesel, macros and rt of tokio

Affects benzin::pg

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.

tokio-postgres postgres?
tokio mysql? postgres?
mysql_async mysql?
mysql_common mysql?
bb8 implicit feature

Enables bb8

bb8:

Full-featured async (tokio-based) connection pool (like r2d2)

Affects pooled_connection::bb8, benzin::pooled_connection

deadpool implicit feature

Enables deadpool

deadpool:

Dead simple async pool

Affects pooled_connection::deadpool, benzin::pooled_connection