2020-03-29 07:39:59 +00:00
|
|
|
[package]
|
2020-05-16 03:07:57 +00:00
|
|
|
name = "sqlx-cli"
|
2021-08-17 19:44:24 +00:00
|
|
|
version = "0.5.6"
|
2020-05-16 03:07:57 +00:00
|
|
|
description = "Command-line utility for SQLx, the Rust SQL toolkit."
|
2020-03-29 07:39:59 +00:00
|
|
|
edition = "2018"
|
|
|
|
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]
|
|
|
|
dotenv = "0.15"
|
2021-01-14 12:24:25 +00:00
|
|
|
tokio = { version = "1.0.1", features = ["macros", "rt", "rt-multi-thread"] }
|
2021-08-17 19:49:02 +00:00
|
|
|
sqlx = { version = "0.5.6", path = "..", default-features = false, features = [
|
2021-04-16 01:38:50 +00:00
|
|
|
"runtime-async-std-native-tls",
|
|
|
|
"migrate",
|
|
|
|
"any",
|
|
|
|
"offline",
|
|
|
|
] }
|
2020-04-07 22:55:06 +00:00
|
|
|
futures = "0.3"
|
2021-08-16 23:51:31 +00:00
|
|
|
# FIXME: we need to fix both of these versions until Clap 3.0 proper is released, then we can drop `clap_derive`
|
|
|
|
# https://github.com/launchbadge/sqlx/issues/1378
|
|
|
|
# https://github.com/clap-rs/clap/issues/2705
|
2020-09-30 17:04:14 +00:00
|
|
|
clap = "=3.0.0-beta.2"
|
2021-08-16 23:51:31 +00:00
|
|
|
clap_derive = "=3.0.0-beta.2"
|
2020-03-29 07:39:59 +00:00
|
|
|
chrono = "0.4"
|
2020-04-10 10:56:12 +00:00
|
|
|
anyhow = "1.0"
|
2020-04-15 10:45:38 +00:00
|
|
|
url = { version = "2.1.1", default-features = false }
|
|
|
|
async-trait = "0.1.30"
|
2021-04-09 07:31:07 +00:00
|
|
|
console = "0.14.1"
|
|
|
|
dialoguer = "0.8.0"
|
2021-02-25 07:04:19 +00:00
|
|
|
serde_json = "1.0.53"
|
2021-01-11 20:27:42 +00:00
|
|
|
serde = { version = "1.0.110", features = ["derive"] }
|
2020-05-13 03:19:25 +00:00
|
|
|
glob = "0.3.0"
|
2020-07-21 14:11:47 +00:00
|
|
|
openssl = { version = "0.10.30", optional = true }
|
2020-10-06 13:24:43 +00:00
|
|
|
# workaround for https://github.com/rust-lang/rust/issues/29497
|
2021-04-09 07:31:07 +00:00
|
|
|
remove_dir_all = "0.7.0"
|
2020-04-16 13:05:32 +00:00
|
|
|
|
|
|
|
[features]
|
2021-04-16 01:38:50 +00:00
|
|
|
default = ["postgres", "sqlite", "mysql"]
|
2020-04-16 13:05:32 +00:00
|
|
|
|
2020-07-12 10:43:49 +00:00
|
|
|
# databases
|
2021-04-16 01:38:50 +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"]
|