Cargo Features
[dependencies]
moosicbox_database = { version = "0.1.0", default-features = false, features = ["fail-on-warnings", "tls", "api", "mysql", "mysql-sqlx", "postgres", "postgres-raw", "postgres-sqlx", "sqlite", "sqlite-rusqlite", "sqlite-sqlx", "sqlx"] }
- default = api, mysql, postgres-sqlx, sqlite-rusqlite, sqlite-sqlx
-
These default features are set whenever
moosicbox_database
is added without
somewhere in the dependency tree.default-features = false - fail-on-warnings
- tls
-
Enables tls-rustls of sqlx
sqlx dependencies
- api default
-
Enables actix-web, futures, and qstring
actix-web:
Api dependencies
Affects
profiles::api
… - mysql default = mysql-sqlx, sqlx
- mysql-sqlx mysql = sqlx
-
Enables futures, mysql of sqlx
Affects
sqlx::mysql
… - postgres postgres-raw? postgres-sqlx = postgres-raw
-
Enables futures, moosicbox_task, regex, and tokio-util
regex:
Postgres dependencies
- postgres-raw postgres? = postgres
-
Enables postgres-protocol and tokio-postgres
postgres-protocol:
tokio-postgres dependencies
Affects
moosicbox_database::postgres
,postgres::postgres
… - postgres-sqlx default = postgres, sqlx
-
Enables sqlx-postgres, postgres of sqlx
Affects
sqlx::postgres
… - sqlite = sqlite-sqlx
- sqlite-rusqlite default
-
Enables rusqlite
DB Dependencies
Affects
moosicbox_database::rusqlite
… - sqlite-sqlx default sqlite? = sqlx
-
Enables futures and regex, sqlite of sqlx
Affects
sqlx::sqlite
… - sqlx mysql mysql-sqlx? postgres-sqlx sqlite-sqlx tls?
-
Affects
moosicbox_database::sqlx
…