Cargo Features
[dependencies]
sql_from_models = { version = "0.1.14", default-features = false, features = ["json", "sqlx-postgres", "sqlx-mysql", "sqlx-sqlite", "sqlformat", "chrono"] }
- default = sqlformat
-
The
sqlformat
feature is set by default wheneversql_from_models
is added without
somewhere in the dependency tree.default-features = false - json = serde, serde_json
- sqlx-postgres = sqlx
- sqlx-mysql = sqlx
- sqlx-sqlite = sqlx
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.
- sqlformat default
-
Affects
prelude::FORMAT_OPTIONS
… - serde json?
- serde_json json?
- sqlx sqlx-mysql? sqlx-postgres? sqlx-sqlite?
- chrono implicit feature
-
Enables chrono
chrono:
Date and time library for Rust