# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "sqlx-cli"
version = "0.8.3"
authors = [
    "Jesper Axelsson <jesperaxe@gmail.com>",
    "Austin Bonander <austin.bonander@gmail.com>",
]
default-run = "sqlx"
description = "Command-line utility for SQLx, the Rust SQL toolkit."
homepage = "https://github.com/launchbadge/sqlx"
readme = "README.md"
keywords = [
    "database",
    "postgres",
    "database-management",
    "migration",
]
categories = [
    "database",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/launchbadge/sqlx"

[[bin]]
name = "sqlx"
path = "src/bin/sqlx.rs"

[[bin]]
name = "cargo-sqlx"
path = "src/bin/cargo-sqlx.rs"

[dependencies.anyhow]
version = "1.0.52"

[dependencies.async-trait]
version = "0.1.52"

[dependencies.backoff]
version = "0.4.0"
features = [
    "futures",
    "tokio",
]

[dependencies.cargo_metadata]
version = "0.18.1"

[dependencies.chrono]
version = "0.4.19"
features = ["clock"]
default-features = false

[dependencies.clap]
version = "4.3.10"
features = [
    "derive",
    "env",
]

[dependencies.clap_complete]
version = "4.3.1"
optional = true

[dependencies.console]
version = "0.15.0"

[dependencies.dotenvy]
version = "0.15.0"

[dependencies.filetime]
version = "0.2"

[dependencies.futures]
version = "0.3.19"

[dependencies.glob]
version = "0.3.0"

[dependencies.openssl]
version = "0.10.38"
optional = true

[dependencies.promptly]
version = "0.3.0"

[dependencies.serde_json]
version = "1.0.73"

[dependencies.sqlx]
version = "=0.8.3"
features = [
    "runtime-tokio",
    "migrate",
    "any",
]
default-features = false

[dependencies.tokio]
version = "1.15.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
]

[dev-dependencies.assert_cmd]
version = "2.0.11"

[dev-dependencies.tempfile]
version = "3.10.1"

[features]
completions = ["dep:clap_complete"]
default = [
    "postgres",
    "sqlite",
    "mysql",
    "native-tls",
    "completions",
]
mysql = ["sqlx/mysql"]
native-tls = ["sqlx/runtime-tokio-native-tls"]
openssl-vendored = ["openssl/vendored"]
postgres = ["sqlx/postgres"]
rustls = ["sqlx/runtime-tokio-rustls"]
sqlite = ["sqlx/sqlite"]
sqlite-unbundled = ["sqlx/sqlite-unbundled"]

[lints.clippy]
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_sign_loss = "deny"
disallowed_methods = "deny"