Cargo Features

[dependencies]
diesel = { version = "2.1.6", default-features = false, features = ["extras", "unstable", "large-tables", "huge-tables", "32-column-tables", "64-column-tables", "128-column-tables", "postgres", "sqlite", "mysql", "without-deprecated", "with-deprecated", "network-address", "ipnet-address", "numeric", "postgres_backend", "mysql_backend", "returning_clauses_for_sqlite_3_35", "i-implement-a-third-party-backend-and-opt-into-breaking-changes", "nightly-error-messages", "r2d2", "chrono", "time", "quickcheck"] }
default = 32-column-tables, with-deprecated

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

extras = chrono, network-address, numeric, r2d2, serde_json, time, uuid
unstable

Enables nightly of diesel_derives

large-tables = 32-column-tables
huge-tables = 64-column-tables
32-column-tables default 64-column-tables? large-tables?

Enables 32-column-tables of diesel_derives

64-column-tables 128-column-tables? huge-tables? = 32-column-tables

Enables 64-column-tables of diesel_derives

128-column-tables = 64-column-tables

Enables 128-column-tables of diesel_derives

postgres = postgres_backend, pq-sys

Affects connection::PgConnection, test_helpers::pg_connection, test_helpers::pg_connection_no_transaction, test_helpers::pg_database_url

sqlite = libsqlite3-sys

Enables sqlite of diesel_derives, formatting and parsing of optional time

Affects diesel::sqlite, connection::SqliteConnection, expression_methods::SqliteExpressionMethods, types::Timestamptz

mysql = bitflags, mysql_backend, mysqlclient-sys, percent-encoding, url

Affects connection::MysqlConnection

without-deprecated

Enables without-deprecated of diesel_derives

with-deprecated default

Enables with-deprecated of diesel_derives

Affects backend::RawValue, backend::BindCollector, connection::LoadRowIter, diesel::helper_types.LoadIter, load_dsl::LoadRet, row::FieldRet

network-address extras? = ipnetwork, libc
ipnet-address = ipnet, libc
numeric extras? = bigdecimal, num-bigint, num-integer, num-traits
postgres_backend postgres? = bitflags, byteorder, itoa

Enables postgres of diesel_derives

Affects diesel::pg, diesel::helper_types.DistinctOn, array::array, expression_methods::PgExpressionMethods, expression_methods::PgTimestampExpressionMethods, expression_methods::PgArrayExpressionMethods, expression_methods::PgSortExpressionMethods, expression_methods::PgTextExpressionMethods, expression_methods::PgRangeExpressionMethods, expression_methods::PgNetExpressionMethods, expression_methods::PgJsonbExpressionMethods, expression_methods::PgAnyJsonExpressionMethods, expression_methods::PgBinaryExpressionMethods, interval_dsl::IntervalDsl, helper_types::ILike, helper_types::NotILike, helper_types::SimilarTo, helper_types::NotSimilarTo, helper_types::IsNotDistinctFrom, helper_types::IsDistinctFrom

mysql_backend mysql? = byteorder

Enables mysql of diesel_derives

Affects diesel::mysql, types::Unsigned, types::Datetime

returning_clauses_for_sqlite_3_35
i-implement-a-third-party-backend-and-opt-into-breaking-changes

Affects connection::statement_cache, expression::array_comparison, expression::exists

nightly-error-messages
r2d2 extras?

Enables r2d2, r2d2 of diesel_derives

Affects diesel::r2d2

chrono extras?

Enables chrono, chrono of diesel_derives

time extras?

Enables time, time of diesel_derives

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.

byteorder mysql_backend? postgres_backend?
libc ipnet-address? network-address?
libsqlite3-sys sqlite?
mysqlclient-sys mysql?
pq-sys postgres?

Enables pq-sys ^0.4.0

quickcheck implicit feature

Enables quickcheck

quickcheck:

Automatic property based testing with shrinking

serde_json extras?
url mysql?
percent-encoding mysql?
uuid extras?
ipnetwork network-address?
ipnet ipnet-address?
num-bigint numeric?
num-traits numeric?
num-integer numeric?
bigdecimal numeric?
bitflags mysql? postgres_backend?
itoa postgres_backend?