Cargo Features

[dependencies]
mysql_async = { version = "0.35.1", default-features = false, features = ["default-rustls", "default-rustls-ring", "default-rustls-no-provider", "minimal", "minimal-rust", "native-tls-tls", "rustls-tls", "aws-lc-rs", "ring", "tls12", "binlog", "derive", "chrono", "time", "bigdecimal", "rust_decimal", "frunk", "tracing", "nightly", "hdrhistogram"] }
default = derive

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

Enables zlib of flate2

default-rustls = aws-lc-rs, default-rustls-no-provider
default-rustls-ring = default-rustls-no-provider, ring
default-rustls-no-provider default-rustls? default-rustls-ring? = derive, rustls-tls, tls12

Enables rust_backend of flate2

minimal

minimal feature set with system flate2 impl

Enables zlib of flate2

minimal-rust

minimal feature set with rust flate2 impl

Enables rust_backend of flate2

native-tls-tls = native-tls, tokio-native-tls

native-tls based TLS support

rustls-tls default-rustls-no-provider? = rustls, rustls-pemfile, tokio-rustls, webpki, webpki-roots

rustls based TLS support

aws-lc-rs default-rustls?

Enables aws_lc_rs of rustls and tokio-rustls

ring default-rustls-ring?

Enables ring of rustls and tokio-rustls

tls12 default-rustls-no-provider?

Enables tls12 of rustls and tokio-rustls

binlog

Enables binlog of mysql_common

Affects conn::binlog_stream, mysql_async::binlog

derive default default-rustls-no-provider?

mysql_common features

Enables derive of mysql_common

chrono

Enables chrono of mysql_common

time

Enables time of mysql_common

bigdecimal

Enables bigdecimal of mysql_common

rust_decimal

Enables rust_decimal of mysql_common

frunk

Enables frunk of mysql_common

tracing

other features

Enables tracing

nightly

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.

hdrhistogram implicit feature

Enables hdrhistogram

hdrhistogram:

A port of HdrHistogram to Rust

Affects metrics::Metrics.connection_active_duration, metrics::Metrics.connection_idle_duration, metrics::Metrics.check_duration, metrics::Metrics.connect_duration, metrics::MetricsHistogram

native-tls native-tls-tls?
rustls-pemfile rustls-tls?
tokio-native-tls native-tls-tls?
webpki rustls-tls?
webpki-roots rustls-tls?
rustls aws-lc-rs? ring? rustls-tls? tls12?
tokio-rustls aws-lc-rs? ring? rustls-tls? tls12?