Cargo Features

[dependencies]
cot = { version = "0.1.1", default-features = false, features = ["full", "fake", "db", "sqlite", "postgres", "mysql", "json", "live-reload"] }
default full? = json, mysql, postgres, sqlite

These default features are set whenever cot is added without default-features = false somewhere in the dependency tree.

full = default, fake, live-reload
fake full?

Enables fake

db mysql postgres sqlite

Enables url

Affects auth::db, config::ProjectConfig.database, config::DatabaseConfig, config::DatabaseUrl, cot::db, project::App.migrations, request::RequestExt.db, test::TestDatabase, test::TestMigration

sqlite default = db

Enables backend-sqlite of sea-query, sqlx-sqlite of sea-query-binder, sqlite of sqlx

Affects db::impl_sqlite, db::FromDbValue.from_sqlite

postgres default = db

Enables backend-postgres of sea-query, sqlx-postgres of sea-query-binder, postgres of sqlx

Affects db::impl_postgres, db::FromDbValue.from_postgres

mysql default = db

Enables sqlx-mysql of sea-query-binder, mysql of sqlx and backend-mysql of sea-query

sea-query:

STUB

Affects db::impl_mysql, db::FromDbValue.from_mysql

json default = serde_json

Affects request::RequestExt.json, response::ResponseExt.new_json

live-reload full?

Enables tower-livereload

Affects middleware::LiveReloadMiddleware

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.

serde_json json