Cargo Features

[dependencies]
testkit-postgres = { version = "0.1.1", default-features = false, features = ["with-tokio-postgres", "with-sqlx"] }
default = with-tokio-postgres

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

with-tokio-postgres default = deadpool-postgres, postgres-types, tokio-postgres

Affects testkit-postgres::tokio_postgres, testkit-postgres::with_postgres_connection

with-sqlx

Enables sqlx

Affects testkit-postgres::sqlx_postgres, testkit-postgres::with_sqlx_connection

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 with-tokio-postgres

Enables tokio-postgres

Feature-specific dependencies

deadpool-postgres with-tokio-postgres
postgres-types with-tokio-postgres