Cargo Features
[dependencies]
db-derive = { version = "0.1.8", default-features = false, features = ["chrono", "json", "uuid", "postgresql", "postgresql-chrono", "postgresql-json", "postgresql-uuid", "sqlite", "sqlite-bundled", "sqlite-chrono", "sqlite-json", "sqlite-uuid"] }
- default = postgresql, sqlite, sqlite-bundled
-
These default features are set whenever
db-derive
is added without
somewhere in the dependency tree.default-features = false - chrono = postgresql-chrono, sqlite-chrono
- json = postgresql-json, sqlite-json
- uuid = postgresql-uuid, sqlite-uuid
- postgresql default = postgres, postgres-types
-
Enables postgresql of db-derive-impl
Affects
pool::postgres
,sql::Sql.sql_postgres
,sql::Sql.params_postgres
,table::Schema.schema_postgres
,table::Table.from_row_postgres
,kind::Kind
… - postgresql-chrono chrono?
-
Enables with-chrono-0_4 of postgres ^0.17.0
- postgresql-json json?
-
Enables with-serde_json-1 of postgres ^0.17.0
- postgresql-uuid uuid?
-
Enables with-uuid-0_8 of postgres ^0.17.0
- sqlite default = rusqlite
-
Enables sqlite of db-derive-impl
Affects
pool::sqlite
,sql::Sql.sql_sqlite
,sql::Sql.params_sqlite
,table::Schema.schema_sqlite
,table::Table.from_row_sqlite
,kind::Kind
… - sqlite-bundled default
-
Enables bundled of rusqlite ^0.21
- sqlite-chrono chrono?
-
Enables chrono of rusqlite ^0.21
- sqlite-json json?
-
Enables serde_json of rusqlite ^0.21
- sqlite-uuid uuid?
-
Enables uuid of rusqlite ^0.21
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.