Cargo Features
[dependencies]
db-testkit = { version = "0.2.0", default-features = false, features = ["postgres", "mysql", "sqlx-postgres", "sqlx-mysql", "sqlx-sqlite"] }
- default = postgres
-
The
postgres
feature is set by default wheneverdb-testkit
is added without
somewhere in the dependency tree.default-features = false - postgres default = tokio-postgres
-
Affects
backends::postgres
,env::get_postgres_url
… - mysql = mysql_async
-
Affects
backends::mysql
,env::get_mysql_url
… - sqlx-postgres
-
Affects
backends::sqlx
,env::get_sqlx_postgres_url
… - sqlx-mysql
- sqlx-sqlite
-
Affects
backends::sqlite
,env::get_sqlx_sqlite_url
…
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.