2020-03-29 07:39:59 +00:00
|
|
|
[package]
|
2020-05-16 03:07:57 +00:00
|
|
|
name = "sqlx-cli"
|
2023-02-21 21:34:42 +00:00
|
|
|
version.workspace = true
|
2020-05-16 03:07:57 +00:00
|
|
|
description = "Command-line utility for SQLx, the Rust SQL toolkit."
|
2022-04-15 19:52:00 +00:00
|
|
|
edition = "2021"
|
2020-03-29 07:39:59 +00:00
|
|
|
readme = "README.md"
|
2020-03-29 07:51:42 +00:00
|
|
|
homepage = "https://github.com/launchbadge/sqlx"
|
|
|
|
repository = "https://github.com/launchbadge/sqlx"
|
2021-04-16 01:38:50 +00:00
|
|
|
keywords = ["database", "postgres", "database-management", "migration"]
|
|
|
|
categories = ["database", "command-line-utilities"]
|
2020-05-16 03:13:13 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-05-13 03:19:25 +00:00
|
|
|
default-run = "sqlx"
|
2020-05-31 06:12:53 +00:00
|
|
|
authors = [
|
|
|
|
"Jesper Axelsson <jesperaxe@gmail.com>",
|
2021-04-16 01:38:50 +00:00
|
|
|
"Austin Bonander <austin.bonander@gmail.com>",
|
2020-05-31 06:12:53 +00:00
|
|
|
]
|
2020-03-29 07:39:59 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "sqlx"
|
2020-05-14 03:30:12 +00:00
|
|
|
path = "src/bin/sqlx.rs"
|
2020-03-29 07:39:59 +00:00
|
|
|
|
2020-05-13 03:19:25 +00:00
|
|
|
# enables invocation as `cargo sqlx`; required for `prepare` subcommand
|
|
|
|
[[bin]]
|
|
|
|
name = "cargo-sqlx"
|
2020-05-14 03:30:12 +00:00
|
|
|
path = "src/bin/cargo-sqlx.rs"
|
2020-05-13 03:19:25 +00:00
|
|
|
|
2020-03-29 07:39:59 +00:00
|
|
|
[dependencies]
|
2022-07-28 21:33:44 +00:00
|
|
|
dotenvy = "0.15.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
tokio = { version = "1.15.0", features = ["macros", "rt", "rt-multi-thread"] }
|
2023-02-02 00:47:29 +00:00
|
|
|
sqlx = { workspace = true, default-features = false, features = [
|
2023-03-23 08:37:08 +00:00
|
|
|
"runtime-tokio",
|
2021-04-16 01:38:50 +00:00
|
|
|
"migrate",
|
|
|
|
"any",
|
|
|
|
] }
|
2021-12-30 01:25:49 +00:00
|
|
|
futures = "0.3.19"
|
2023-07-09 20:13:43 +00:00
|
|
|
clap = { version = "4.3.10", features = ["derive", "env"] }
|
|
|
|
clap_complete = { version = "4.3.1", optional = true }
|
2022-09-13 01:08:39 +00:00
|
|
|
chrono = { version = "0.4.19", default-features = false, features = ["clock"] }
|
2021-12-30 01:25:49 +00:00
|
|
|
anyhow = "1.0.52"
|
|
|
|
url = { version = "2.2.2", default-features = false }
|
|
|
|
async-trait = "0.1.52"
|
2022-04-15 21:34:48 +00:00
|
|
|
console = "0.15.0"
|
2021-08-30 21:10:53 +00:00
|
|
|
promptly = "0.3.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
serde_json = "1.0.73"
|
|
|
|
serde = { version = "1.0.132", features = ["derive"] }
|
2020-05-13 03:19:25 +00:00
|
|
|
glob = "0.3.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
openssl = { version = "0.10.38", optional = true }
|
2024-07-27 23:19:26 +00:00
|
|
|
cargo_metadata = "0.18.1"
|
2022-07-12 21:29:41 +00:00
|
|
|
filetime = "0.2"
|
2020-04-16 13:05:32 +00:00
|
|
|
|
2022-06-08 22:48:04 +00:00
|
|
|
backoff = { version = "0.4.0", features = ["futures", "tokio"] }
|
|
|
|
|
2020-04-16 13:05:32 +00:00
|
|
|
[features]
|
2023-06-30 21:59:35 +00:00
|
|
|
default = ["postgres", "sqlite", "mysql", "native-tls", "completions"]
|
2021-12-30 01:25:49 +00:00
|
|
|
rustls = ["sqlx/runtime-tokio-rustls"]
|
|
|
|
native-tls = ["sqlx/runtime-tokio-native-tls"]
|
2020-04-16 13:05:32 +00:00
|
|
|
|
2020-07-12 10:43:49 +00:00
|
|
|
# databases
|
2023-02-22 10:15:23 +00:00
|
|
|
mysql = ["sqlx/mysql"]
|
|
|
|
postgres = ["sqlx/postgres"]
|
|
|
|
sqlite = ["sqlx/sqlite"]
|
2020-07-21 14:11:47 +00:00
|
|
|
|
|
|
|
# workaround for musl + openssl issues
|
2021-04-16 01:38:50 +00:00
|
|
|
openssl-vendored = ["openssl/vendored"]
|
2023-06-30 21:59:35 +00:00
|
|
|
|
|
|
|
completions = ["dep:clap_complete"]
|
2023-07-31 19:49:53 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
assert_cmd = "2.0.11"
|
2024-07-20 01:50:18 +00:00
|
|
|
tempfile = "3.10.1"
|