Email me

Crate features / sqlx

Feature flags · sqlx 0.9.0 · from crates.io 2026-10-24

sqlx features: what each one does, and the line to copy

Short answersqlx 0.9.0 has 46 features. By default it turns on any, macros, migrate, json; add default-features = false to start from nothing. It needs Rust 1.94.0 or newer.

Pick features

0.9.0latest version
46features
0optional dependencies
1.94.0MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
_rt-async-global-executornothing else (a switch the code checks)
_rt-async-stdnothing else (a switch the code checks)
_rt-smolnothing else (a switch the code checks)
_rt-tokionothing else (a switch the code checks)
_sqlitenothing else (a switch the code checks)
_unstable-all-typesbigdecimal, rust_decimal, json, time, chrono, ipnet, ipnetwork, mac_address, uuid, bit-vec, bstr
_unstable-docsall-databases, _unstable-all-types, sqlx-sqlite/_unstable-docs
all-databasesmysql, sqlite, postgres, any
anyyessqlx-core/any, sqlx-mysql?/any, sqlx-postgres?/any, sqlx-sqlite?/any
bigdecimalsqlx-core/bigdecimal, sqlx-macros?/bigdecimal, sqlx-mysql?/bigdecimal, sqlx-postgres?/bigdecimal
bit-vecsqlx-core/bit-vec, sqlx-macros?/bit-vec, sqlx-postgres?/bit-vec
bstrsqlx-core/bstr
chronosqlx-core/chrono, sqlx-macros?/chrono, sqlx-mysql?/chrono, sqlx-postgres?/chrono, sqlx-sqlite?/chrono
derivesqlx-macros/derive
ipnetsqlx-core/ipnet, sqlx-macros?/ipnet, sqlx-postgres?/ipnet
ipnetworksqlx-core/ipnetwork, sqlx-macros?/ipnetwork, sqlx-postgres?/ipnetwork
jsonyessqlx-core/json, sqlx-macros?/json, sqlx-mysql?/json, sqlx-postgres?/json, sqlx-sqlite?/json
mac_addresssqlx-core/mac_address, sqlx-macros?/mac_address, sqlx-postgres?/mac_address
macrosyesderive, sqlx-macros/macros, sqlx-core/offline, sqlx-mysql?/offline, sqlx-postgres?/offline, sqlx-sqlite?/offline
migrateyessqlx-core/migrate, sqlx-macros?/migrate, sqlx-mysql?/migrate, sqlx-postgres?/migrate, sqlx-sqlite?/migrate
mysqlsqlx-mysql, sqlx-macros?/mysql
mysql-rsamysql, sqlx-mysql/rsa, sqlx-macros?/mysql-rsa
postgressqlx-postgres, sqlx-macros?/postgres
regexpsqlx-sqlite?/regexp
runtime-async-global-executor_rt-async-global-executor, sqlx-core/_rt-async-global-executor, sqlx-macros?/_rt-async-global-executor
runtime-async-std_rt-async-std, sqlx-core/_rt-async-std, sqlx-macros?/_rt-async-std
runtime-smol_rt-smol, sqlx-core/_rt-smol, sqlx-macros?/_rt-smol
runtime-tokio_rt-tokio, sqlx-core/_rt-tokio, sqlx-macros?/_rt-tokio
rust_decimalsqlx-core/rust_decimal, sqlx-macros?/rust_decimal, sqlx-mysql?/rust_decimal, sqlx-postgres?/rust_decimal
sqlitesqlite-bundled, sqlite-deserialize, sqlite-load-extension, sqlite-unlock-notify
sqlite-bundled_sqlite, sqlx-sqlite/bundled, sqlx-macros?/sqlite
sqlite-deserializesqlx-sqlite/deserialize
sqlite-load-extensionsqlx-sqlite/load-extension, sqlx-macros?/sqlite-load-extension
sqlite-preupdate-hooksqlx-sqlite/preupdate-hook
sqlite-unbundled_sqlite, sqlx-sqlite/unbundled, sqlx-macros?/sqlite-unbundled
sqlite-unlock-notifysqlx-sqlite/unlock-notify
sqlx-tomlsqlx-core/sqlx-toml, sqlx-macros?/sqlx-toml, sqlx-sqlite?/sqlx-toml
timesqlx-core/time, sqlx-macros?/time, sqlx-mysql?/time, sqlx-postgres?/time, sqlx-sqlite?/time
tls-native-tlssqlx-core/_tls-native-tls, sqlx-macros?/_tls-native-tls
tls-nonenothing else (a switch the code checks)
tls-rustlstls-rustls-ring
tls-rustls-aws-lc-rssqlx-core/_tls-rustls-aws-lc-rs, sqlx-macros?/_tls-rustls-aws-lc-rs
tls-rustls-ringtls-rustls-ring-webpki
tls-rustls-ring-native-rootssqlx-core/_tls-rustls-ring-native-roots, sqlx-macros?/_tls-rustls-ring-native-roots
tls-rustls-ring-webpkisqlx-core/_tls-rustls-ring-webpki, sqlx-macros?/_tls-rustls-ring-webpki
uuidsqlx-core/uuid, sqlx-macros?/uuid, sqlx-mysql?/uuid, sqlx-postgres?/uuid, sqlx-sqlite?/uuid

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version sqlx declares (rust-version), and the release that changed it:

  • 0.9.0-alpha.1 (2025-10-15): Rust 1.86.0
  • 0.9.0 (2026-05-21): Rust 1.94.0

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p sqlx --precise <version>, or use resolver 3, which picks compatible versions for you.

More on sqlx

Real downloads, dependents and alternatives: sqlx crate data (540.4K real downloads a day, 4,124 dependents).

Security record: sqlx advisories.

docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021

Up next

Before you depend on itsqlx crate dataReal downloads, dependents, alternatives.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ