2019-11-22 10:30:16 +00:00
|
|
|
[package]
|
|
|
|
name = "sqlx-core"
|
2022-08-03 01:22:23 +00:00
|
|
|
version = "0.6.1"
|
2019-12-28 08:25:04 +00:00
|
|
|
repository = "https://github.com/launchbadge/sqlx"
|
|
|
|
description = "Core of SQLx, the rust SQL toolkit. Not intended to be used directly."
|
2019-11-22 10:30:16 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-04-15 19:52:00 +00:00
|
|
|
edition = "2021"
|
2019-11-22 10:30:16 +00:00
|
|
|
authors = [
|
2020-05-26 08:56:03 +00:00
|
|
|
"Ryan Leckey <leckey.ryan@gmail.com>",
|
|
|
|
"Austin Bonander <austin.bonander@gmail.com>",
|
2020-07-28 17:45:12 +00:00
|
|
|
"Chloe Ross <orangesnowfox@gmail.com>",
|
2020-05-26 08:56:03 +00:00
|
|
|
"Daniel Akhterov <akhterovd@gmail.com>",
|
2019-11-22 10:30:16 +00:00
|
|
|
]
|
|
|
|
|
2020-10-13 17:32:46 +00:00
|
|
|
[package.metadata.docs.rs]
|
2022-07-28 20:15:40 +00:00
|
|
|
features = ["all-databases", "all-types", "offline", "runtime-tokio-native-tls"]
|
2020-10-13 17:32:46 +00:00
|
|
|
|
2019-11-22 10:30:16 +00:00
|
|
|
[features]
|
2021-04-16 01:38:50 +00:00
|
|
|
default = ["migrate"]
|
|
|
|
migrate = ["sha2", "crc"]
|
2020-05-26 08:56:03 +00:00
|
|
|
|
|
|
|
# databases
|
2021-04-16 01:38:50 +00:00
|
|
|
all-databases = ["postgres", "mysql", "sqlite", "mssql", "any"]
|
|
|
|
postgres = [
|
|
|
|
"md-5",
|
|
|
|
"sha2",
|
|
|
|
"base64",
|
|
|
|
"sha-1",
|
|
|
|
"rand",
|
|
|
|
"hmac",
|
|
|
|
"futures-channel/sink",
|
|
|
|
"futures-util/sink",
|
|
|
|
"json",
|
|
|
|
"dirs",
|
2021-12-21 01:54:58 +00:00
|
|
|
"whoami",
|
2022-03-25 00:38:24 +00:00
|
|
|
"hkdf"
|
2021-04-16 01:38:50 +00:00
|
|
|
]
|
|
|
|
mysql = [
|
|
|
|
"sha-1",
|
|
|
|
"sha2",
|
|
|
|
"generic-array",
|
|
|
|
"num-bigint",
|
|
|
|
"digest",
|
|
|
|
"rand",
|
|
|
|
"rsa",
|
|
|
|
]
|
2021-12-29 23:23:02 +00:00
|
|
|
sqlite = ["libsqlite3-sys", "futures-executor", "flume"]
|
2021-04-16 01:38:50 +00:00
|
|
|
mssql = ["uuid", "encoding_rs", "regex"]
|
2020-06-27 11:07:40 +00:00
|
|
|
any = []
|
2020-05-26 08:56:03 +00:00
|
|
|
|
|
|
|
# types
|
2021-04-16 01:38:50 +00:00
|
|
|
all-types = [
|
|
|
|
"chrono",
|
|
|
|
"time",
|
|
|
|
"bigdecimal",
|
|
|
|
"decimal",
|
|
|
|
"ipnetwork",
|
2021-07-19 23:55:53 +00:00
|
|
|
"mac_address",
|
2021-04-16 01:38:50 +00:00
|
|
|
"json",
|
|
|
|
"uuid",
|
|
|
|
"bit-vec",
|
|
|
|
]
|
|
|
|
bigdecimal = ["bigdecimal_", "num-bigint"]
|
|
|
|
decimal = ["rust_decimal", "num-bigint"]
|
|
|
|
json = ["serde", "serde_json"]
|
2020-05-26 08:56:03 +00:00
|
|
|
|
|
|
|
# runtimes
|
2022-08-02 04:48:40 +00:00
|
|
|
runtime-actix-native-tls = ["runtime-tokio-native-tls"]
|
2021-04-16 01:38:50 +00:00
|
|
|
runtime-async-std-native-tls = [
|
|
|
|
"sqlx-rt/runtime-async-std-native-tls",
|
2022-04-15 19:52:00 +00:00
|
|
|
"sqlx/runtime-async-std-native-tls",
|
2021-04-16 01:38:50 +00:00
|
|
|
"_tls-native-tls",
|
|
|
|
"_rt-async-std",
|
|
|
|
]
|
|
|
|
runtime-tokio-native-tls = [
|
|
|
|
"sqlx-rt/runtime-tokio-native-tls",
|
2022-04-15 19:52:00 +00:00
|
|
|
"sqlx/runtime-tokio-native-tls",
|
2021-04-16 01:38:50 +00:00
|
|
|
"_tls-native-tls",
|
|
|
|
"_rt-tokio",
|
|
|
|
]
|
2020-10-20 10:29:24 +00:00
|
|
|
|
2022-08-02 04:48:40 +00:00
|
|
|
runtime-actix-rustls = ['runtime-tokio-rustls']
|
2021-04-16 01:38:50 +00:00
|
|
|
runtime-async-std-rustls = [
|
|
|
|
"sqlx-rt/runtime-async-std-rustls",
|
2022-04-15 19:52:00 +00:00
|
|
|
"sqlx/runtime-async-std-rustls",
|
2021-04-16 01:38:50 +00:00
|
|
|
"_tls-rustls",
|
|
|
|
"_rt-async-std",
|
|
|
|
]
|
2022-04-15 19:52:00 +00:00
|
|
|
runtime-tokio-rustls = [
|
|
|
|
"sqlx-rt/runtime-tokio-rustls",
|
|
|
|
"sqlx/runtime-tokio-rustls",
|
|
|
|
"_tls-rustls",
|
|
|
|
"_rt-tokio"
|
|
|
|
]
|
2020-10-20 10:21:01 +00:00
|
|
|
|
2020-10-20 10:29:24 +00:00
|
|
|
# for conditional compilation
|
|
|
|
_rt-async-std = []
|
2021-04-16 01:38:50 +00:00
|
|
|
_rt-tokio = ["tokio-stream"]
|
2020-10-20 16:04:13 +00:00
|
|
|
_tls-native-tls = []
|
2022-04-14 22:11:17 +00:00
|
|
|
_tls-rustls = ["rustls", "rustls-pemfile", "webpki-roots"]
|
2019-11-22 10:30:16 +00:00
|
|
|
|
2020-04-14 06:00:19 +00:00
|
|
|
# support offline/decoupled building (enables serialization of `Describe`)
|
2021-04-16 01:38:50 +00:00
|
|
|
offline = ["serde", "either/serde"]
|
2020-04-14 06:00:19 +00:00
|
|
|
|
2019-11-22 10:30:16 +00:00
|
|
|
[dependencies]
|
2022-02-17 22:57:48 +00:00
|
|
|
paste = "1.0.6"
|
2021-12-30 01:25:49 +00:00
|
|
|
ahash = "0.7.6"
|
2022-04-15 21:34:48 +00:00
|
|
|
atoi = "1.0"
|
2022-08-03 01:22:23 +00:00
|
|
|
sqlx-rt = { path = "../sqlx-rt", version = "0.6.1" }
|
2021-04-16 01:38:50 +00:00
|
|
|
base64 = { version = "0.13.0", default-features = false, optional = true, features = ["std"] }
|
2022-04-14 23:12:15 +00:00
|
|
|
bigdecimal_ = { version = "0.3.0", optional = true, package = "bigdecimal" }
|
2021-12-30 01:25:49 +00:00
|
|
|
rust_decimal = { version = "1.19.0", optional = true }
|
|
|
|
bit-vec = { version = "0.6.3", optional = true }
|
|
|
|
bitflags = { version = "1.3.2", default-features = false }
|
|
|
|
bytes = "1.1.0"
|
|
|
|
byteorder = { version = "1.4.3", default-features = false, features = ["std"] }
|
|
|
|
chrono = { version = "0.4.19", default-features = false, features = ["clock"], optional = true }
|
2022-05-02 19:44:16 +00:00
|
|
|
crc = { version = "3", optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
crossbeam-queue = "0.3.2"
|
2022-04-11 18:24:09 +00:00
|
|
|
digest = { version = "0.10.0", default-features = false, optional = true, features = ["std"] }
|
2021-12-30 01:25:49 +00:00
|
|
|
dirs = { version = "4.0.0", optional = true }
|
|
|
|
encoding_rs = { version = "0.8.30", optional = true }
|
|
|
|
either = "1.6.1"
|
|
|
|
futures-channel = { version = "0.3.19", default-features = false, features = ["sink", "alloc", "std"] }
|
|
|
|
futures-core = { version = "0.3.19", default-features = false }
|
2021-07-21 23:28:44 +00:00
|
|
|
futures-intrusive = "0.4.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "sink"] }
|
2021-12-29 23:23:02 +00:00
|
|
|
# used by the SQLite worker thread to block on the async mutex that locks the database handle
|
2021-12-30 01:25:49 +00:00
|
|
|
futures-executor = { version = "0.3.19", optional = true }
|
2021-12-29 23:23:02 +00:00
|
|
|
flume = { version = "0.10.9", optional = true, default-features = false, features = ["async"] }
|
2020-12-19 08:25:57 +00:00
|
|
|
generic-array = { version = "0.14.4", default-features = false, optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
hex = "0.4.3"
|
2022-04-11 18:24:09 +00:00
|
|
|
hmac = { version = "0.12.0", default-features = false, optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
itoa = "1.0.1"
|
2022-04-14 22:11:58 +00:00
|
|
|
ipnetwork = { version = "0.19.0", default-features = false, optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
mac_address = { version = "1.1.2", default-features = false, optional = true }
|
|
|
|
libc = "0.2.112"
|
2022-03-28 22:04:49 +00:00
|
|
|
libsqlite3-sys = { version = "0.24.1", optional = true, default-features = false, features = [
|
2021-04-16 01:38:50 +00:00
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
|
|
|
"bundled",
|
2022-02-16 04:10:36 +00:00
|
|
|
"unlock_notify"
|
2021-04-16 01:38:50 +00:00
|
|
|
] }
|
2021-12-30 01:25:49 +00:00
|
|
|
log = { version = "0.4.14", default-features = false }
|
2022-04-11 18:24:09 +00:00
|
|
|
md-5 = { version = "0.10.0", default-features = false, optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
memchr = { version = "2.4.1", default-features = false }
|
2022-04-14 23:12:15 +00:00
|
|
|
num-bigint = { version = "0.4.0", default-features = false, optional = true, features = ["std"] }
|
2021-12-30 01:25:49 +00:00
|
|
|
once_cell = "1.9.0"
|
2020-01-21 23:53:07 +00:00
|
|
|
percent-encoding = "2.1.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
rand = { version = "0.8.4", default-features = false, optional = true, features = ["std", "std_rng"] }
|
2022-03-09 17:57:37 +00:00
|
|
|
regex = { version = "1.5.5", optional = true }
|
2022-04-11 18:24:09 +00:00
|
|
|
rsa = { version = "0.6.0", optional = true }
|
2022-04-14 22:11:17 +00:00
|
|
|
rustls = { version = "0.20.1", features = ["dangerous_configuration"], optional = true }
|
|
|
|
rustls-pemfile = { version = "1.0", optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
serde = { version = "1.0.132", features = ["derive", "rc"], optional = true }
|
|
|
|
serde_json = { version = "1.0.73", features = ["raw_value"], optional = true }
|
2022-04-11 18:24:09 +00:00
|
|
|
sha-1 = { version = "0.10.0", default-features = false, optional = true }
|
|
|
|
sha2 = { version = "0.10.0", default-features = false, optional = true }
|
2022-08-08 21:34:56 +00:00
|
|
|
sqlformat = "0.2.0"
|
2021-12-30 01:25:49 +00:00
|
|
|
thiserror = "1.0.30"
|
2022-04-14 22:11:46 +00:00
|
|
|
time = { version = "0.3.2", features = ["macros", "formatting", "parsing"], optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
tokio-stream = { version = "0.1.8", features = ["fs"], optional = true }
|
|
|
|
smallvec = "1.7.0"
|
|
|
|
url = { version = "2.2.2", default-features = false }
|
2022-04-20 19:48:29 +00:00
|
|
|
uuid = { version = "1.0", default-features = false, optional = true, features = ["std"] }
|
2022-04-14 22:11:17 +00:00
|
|
|
webpki-roots = { version = "0.22.0", optional = true }
|
2021-12-30 01:25:49 +00:00
|
|
|
whoami = { version = "1.2.1", optional = true }
|
2020-06-06 17:53:07 +00:00
|
|
|
stringprep = "0.1.2"
|
2021-12-30 01:25:49 +00:00
|
|
|
bstr = { version = "0.2.17", default-features = false, features = ["std"], optional = true }
|
2022-04-14 22:06:37 +00:00
|
|
|
git2 = { version = "0.14", default-features = false, optional = true }
|
2022-04-15 21:34:48 +00:00
|
|
|
hashlink = "0.8.0"
|
2022-02-18 21:49:06 +00:00
|
|
|
# NOTE: *must* remain below 1.7.0 to allow users to avoid the `ahash` cyclic dependency problem by pinning the version
|
|
|
|
# https://github.com/tkaitchuck/aHash/issues/95#issuecomment-874150078
|
|
|
|
indexmap = "1.6.0"
|
2022-04-11 18:24:09 +00:00
|
|
|
hkdf = { version = "0.12.0", optional = true }
|
2022-04-05 23:17:35 +00:00
|
|
|
event-listener = "2.5.2"
|
2022-02-17 22:55:38 +00:00
|
|
|
|
2022-08-02 21:38:12 +00:00
|
|
|
dotenvy = "0.15"
|
|
|
|
|
2022-02-17 22:55:38 +00:00
|
|
|
[dev-dependencies]
|
2022-08-03 01:22:23 +00:00
|
|
|
sqlx = { version = "0.6.1", path = "..", features = ["postgres", "sqlite", "mysql"] }
|
2022-04-11 18:24:09 +00:00
|
|
|
tokio = { version = "1", features = ["rt"] }
|