mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-09-26 20:40:54 +00:00

* Sqlx-core: rename async_io dependency for async-std * Sqlx-core: simplify TimeoutError * Sqlx-core: code for async-global-executor * Sqlx: integrate async-global-executor feature * Note to unsafe * Step up MSRV as async-global-executor needs it * Sqlx-core: fix of unix socket build * Unsafe fixes, smol executor added * Workflow fix * Changes outside sqlx_rt * Cleanup conditional rt compilation * Warning * Add executors to test matrix * Fix of skipping code sqlite due to mismatch in cargo feature names * Smol executor isolated * Fix, reduce number of tests, remove async_std * Fix of test_block_on, regression * Format fixes * async-global-executor added * async-std changed to 1.13 * litemap, zerofrom requires rustc 1.81 * Fix of missing _sqlite in cargo.toml * Clippy lints * Clean up * Remove features combinations * Fixes after merge * Fix of compiling connect_tcp_address with both tokio + other executor selected * Try to fix CI -Z minimal-versions check Try to fix CI -Z minimal-versions check
82 lines
2.1 KiB
TOML
82 lines
2.1 KiB
TOML
[package]
|
|
name = "sqlx-cli"
|
|
version.workspace = true
|
|
description = "Command-line utility for SQLx, the Rust SQL toolkit."
|
|
edition = "2021"
|
|
readme = "README.md"
|
|
homepage = "https://github.com/launchbadge/sqlx"
|
|
repository = "https://github.com/launchbadge/sqlx"
|
|
keywords = ["database", "postgres", "database-management", "migration"]
|
|
categories = ["database", "command-line-utilities"]
|
|
license = "MIT OR Apache-2.0"
|
|
default-run = "sqlx"
|
|
authors = [
|
|
"Jesper Axelsson <jesperaxe@gmail.com>",
|
|
"Austin Bonander <austin.bonander@gmail.com>",
|
|
]
|
|
rust-version.workspace = true
|
|
|
|
[[bin]]
|
|
name = "sqlx"
|
|
path = "src/bin/sqlx.rs"
|
|
|
|
# enables invocation as `cargo sqlx`; required for `prepare` subcommand
|
|
[[bin]]
|
|
name = "cargo-sqlx"
|
|
path = "src/bin/cargo-sqlx.rs"
|
|
|
|
[dependencies]
|
|
dotenvy = "0.15.0"
|
|
tokio = { version = "1.15.0", features = ["macros", "rt", "rt-multi-thread", "signal"] }
|
|
futures-util = { version = "0.3.19", features = ["alloc"] }
|
|
clap = { version = "4.3.10", features = ["derive", "env", "wrap_help"] }
|
|
clap_complete = { version = "4.3.1", optional = true }
|
|
chrono = { version = "0.4.19", default-features = false, features = ["clock"] }
|
|
anyhow = "1.0.52"
|
|
console = "0.15.0"
|
|
dialoguer = { version = "0.11", default-features = false }
|
|
serde_json = "1.0.73"
|
|
glob = "0.3.0"
|
|
openssl = { version = "0.10.38", optional = true }
|
|
cargo_metadata = "0.18.1"
|
|
filetime = "0.2"
|
|
|
|
backoff = { version = "0.4.0", features = ["futures", "tokio"] }
|
|
|
|
[dependencies.sqlx]
|
|
workspace = true
|
|
default-features = false
|
|
features = [
|
|
"runtime-tokio",
|
|
"migrate",
|
|
"any",
|
|
]
|
|
|
|
[features]
|
|
default = ["postgres", "sqlite", "mysql", "native-tls", "completions", "sqlx-toml"]
|
|
|
|
rustls = ["sqlx/tls-rustls"]
|
|
native-tls = ["sqlx/tls-native-tls"]
|
|
|
|
mysql = ["sqlx/mysql"]
|
|
postgres = ["sqlx/postgres"]
|
|
sqlite = ["sqlx/sqlite", "_sqlite"]
|
|
sqlite-unbundled = ["sqlx/sqlite-unbundled", "_sqlite"]
|
|
|
|
# workaround for musl + openssl issues
|
|
openssl-vendored = ["openssl/vendored"]
|
|
|
|
completions = ["dep:clap_complete"]
|
|
|
|
sqlx-toml = ["sqlx/sqlx-toml"]
|
|
|
|
# Conditional compilation only
|
|
_sqlite = []
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2.0.11"
|
|
tempfile = "3.10.1"
|
|
|
|
[lints]
|
|
workspace = true
|