Cargo Features

sqlx-migrate has no features set by default.

[dependencies]
sqlx-migrate = { version = "0.7.1", features = ["generate", "cli", "sqlite", "postgres"] }
generate

Enables prettyplease, quote, syn, and walkdir and proc-macro2

proc-macro2:

Source generation dependencies

cli

Enables atty, comfy-table, dotenvy, filetime, regex, time, tokio, and tracing-subscriber and clap

clap:

CLI dependencies

Affects sqlx-migrate::cli

sqlite

Enables sqlite of sqlx

postgres

Enables postgres of sqlx

_docs

Used for documentation generation purposes only.

Enables runtime-tokio-rustls of sqlx