Cargo Features

sqlx-mysql has no features set by default.

[dependencies]
sqlx-mysql = { version = "0.8.2", features = ["json", "any", "offline", "migrate", "bigdecimal", "chrono", "rust_decimal", "time", "uuid"] }
json = serde

Enables json of sqlx-core

any

Enables any of sqlx-core

Affects sqlx-mysql::any

offline

Enables offline of sqlx-core and derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

migrate

Enables migrate of sqlx-core

bigdecimal

Type Integration features

Enables bigdecimal of sqlx-core and bigdecimal

Type Integrations (versions inherited from [workspace.dependencies])

chrono

Enables chrono, chrono of sqlx-core

rust_decimal

Enables maths of rust_decimal, rust_decimal of sqlx-core

time

Enables time, time of sqlx-core

uuid

Enables uuid, uuid of sqlx-core

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? offline?