Cargo Features

sqlx-macros-core has no features set by default.

[dependencies]
sqlx-macros-core = { version = "0.8.2", features = ["derive", "macros", "migrate", "mysql", "postgres", "sqlite", "json", "bigdecimal", "bit-vec", "chrono", "ipnetwork", "mac_address", "rust_decimal", "time", "uuid", "async-std", "tokio"] }
derive

SQLx features

Affects sqlx-macros-core::derives

macros

Affects sqlx-macros-core::query, sqlx-macros-core::test_attr, sqlx-macros-core::FOSS_DRIVERS

migrate

Enables migrate of sqlx-core

Affects sqlx-macros-core::migrate

mysql = sqlx-mysql

database

postgres = sqlx-postgres
sqlite = sqlx-sqlite
json

type integrations

Enables json of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

bigdecimal

Enables bigdecimal of sqlx-core, optional sqlx-mysql, and optional sqlx-postgres

sqlx-mysql:

Type Integration features

bit-vec

Enables bit-vec of sqlx-core and optional sqlx-postgres

chrono

Enables chrono of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

sqlx-sqlite:

Type integrations

ipnetwork

Enables ipnetwork of sqlx-core and optional sqlx-postgres

mac_address

Enables mac_address of sqlx-core and optional sqlx-postgres

rust_decimal

Enables rust_decimal of sqlx-core, optional sqlx-mysql, and optional sqlx-postgres

time

Enables time of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

uuid

Enables uuid of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

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.

sqlx-mysql mysql?
sqlx-postgres postgres?
sqlx-sqlite sqlite?
async-std implicit feature

Enables async-std

async-std:

Async version of the Rust standard library

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications