Cargo Features
[dependencies]
tdf_config = { version = "0.2.8", default-features = false, features = ["with-postgres", "with-mysql", "with-redis", "sqlite", "postgres"] }
- default = with-redis
-
The
with-redis
feature is set by default whenevertdf_config
is added without
somewhere in the dependency tree.default-features = false - with-postgres = postgres-shared, postgres-types
-
Affects
tdf_config::TdfDataSource
,tdf_config::data_source
,tdf_config::TdfPool
,tdf_config::TdfCursor
… - with-mysql = mysql
-
Affects
tdf_config::TdfDataSource
,tdf_config::data_source
,tdf_config::TdfPool
,tdf_config::TdfCursor
… - with-redis default = r2d2, r2d2_redis, redis
-
Affects
tdf_config::get_redis_connection
,tdf_config::redis_data_source
…
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.
- r2d2 with-redis
- redis with-redis
-
Enables redis ^0.15
- r2d2_redis with-redis
-
Enables r2d2_redis ^0.13
- sqlite implicit feature
-
Enables sqlite ^0.25
sqlite:
The package provides an interface to SQLite
- mysql with-mysql?
-
Enables mysql ^18
- postgres implicit feature
-
Enables postgres ^0.17
postgres:
A native, synchronous PostgreSQL client
- postgres-types with-postgres?
-
Enables postgres-types ^0.1