Cargo Features

[dependencies]
diesel = { version = "2.2.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", "r2d2", "chrono", "time", "mysqlclient-src", "pq-src", "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

Enables pq-sys

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

sqlite

Enables libsqlite3-sys, sqlite of diesel_derives, formatting and parsing of optional time

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

mysql = mysql_backend

Enables bitflags, mysqlclient-sys, percent-encoding, and 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?

Enables ipnetwork and libc

ipnet-address

Enables ipnet and libc

numeric extras?

Enables bigdecimal, num-bigint, num-integer, and num-traits

postgres_backend postgres?

Enables itoa, bitflags and byteorder, 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?

Enables byteorder, 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

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.

mysqlclient-src implicit feature

Enables mysqlclient-src

mysqlclient-src:

Bundled version of libmysqlclient

pq-src implicit feature

Enables pq-src

pq-src:

Bundled version of libpq

quickcheck implicit feature

Enables quickcheck

quickcheck:

Automatic property based testing with shrinking

serde_json extras?
uuid extras?