Cargo Features
[dependencies]
sql_from_models = { version = "0.1.6", 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
-
Enables json and postgres of sqlx ^0.5.9
- sqlx-mysql = sqlx
-
Enables json and mysql of sqlx ^0.5.9
- sqlx-sqlite = sqlx
-
Enables json and sqlite of sqlx ^0.5.9
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
-
Enables sqlformat ^0.1.8
Affects
prelude::FORMAT_OPTIONS
… - serde json?
- serde_json json?
- sqlx sqlx-mysql? sqlx-postgres? sqlx-sqlite?
-
Enables sqlx ^0.5.9
- chrono implicit feature
-
Enables chrono
chrono:
Date and time library for Rust