mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-09-30 14:32:23 +00:00
update dependencies and clean up some more unused imports
This commit is contained in:
parent
b8cd2e9388
commit
10d2b45d9c
666
Cargo.lock
generated
666
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
10
Cargo.toml
10
Cargo.toml
@ -53,14 +53,14 @@ sqlx-macros = { version = "0.2.5", path = "sqlx-macros", default-features = fals
|
||||
|
||||
[dev-dependencies]
|
||||
anyhow = "1.0.26"
|
||||
futures = "0.3.1"
|
||||
futures = "0.3.4"
|
||||
env_logger = "0.7.1"
|
||||
async-std = { version = "1.4.0", features = [ "attributes" ] }
|
||||
tokio = { version = "0.2.9", features = [ "full" ] }
|
||||
async-std = { version = "1.5.0", features = [ "attributes" ] }
|
||||
tokio = { version = "0.2.13", features = [ "full" ] }
|
||||
dotenv = "0.15.0"
|
||||
trybuild = "1.0"
|
||||
trybuild = "1.0.23"
|
||||
sqlx-test = { path = "./sqlx-test" }
|
||||
paste = "0.1"
|
||||
paste = "0.1.7"
|
||||
|
||||
[[test]]
|
||||
name = "postgres-macros"
|
||||
|
@ -23,32 +23,32 @@ runtime-tokio = [ "async-native-tls/runtime-tokio", "tokio" ]
|
||||
|
||||
[dependencies]
|
||||
async-native-tls = { version = "0.3.2", default-features = false, optional = true }
|
||||
async-std = { version = "1.4.0", optional = true }
|
||||
tokio = { version = "0.2.9", default-features = false, features = [ "dns", "fs", "time", "tcp" ], optional = true }
|
||||
async-stream = { version = "0.2.0", default-features = false }
|
||||
async-std = { version = "1.5.0", optional = true }
|
||||
async-stream = { version = "0.2.1", default-features = false }
|
||||
base64 = { version = "0.11.0", default-features = false, optional = true, features = [ "std" ] }
|
||||
bitflags = { version = "1.2.1", default-features = false }
|
||||
byteorder = { version = "1.3.2", default-features = false, features = [ "std" ] }
|
||||
crossbeam-queue = "0.2.1"
|
||||
crossbeam-utils = { version = "0.7.0", default-features = false }
|
||||
byteorder = { version = "1.3.4", default-features = false, features = [ "std" ] }
|
||||
chrono = { version = "0.4.10", default-features = false, features = [ "clock" ], optional = true }
|
||||
crossbeam-queue = "0.2.1"
|
||||
crossbeam-utils = { version = "0.7.2", default-features = false }
|
||||
digest = { version = "0.8.1", default-features = false, optional = true, features = [ "std" ] }
|
||||
futures-channel = { version = "0.3.4", default-features = false, features = [ "alloc" ] }
|
||||
futures-core = { version = "0.3.4", default-features = false }
|
||||
futures-util = { version = "0.3.4", default-features = false }
|
||||
generic-array = { version = "0.12.3", default-features = false, optional = true }
|
||||
hex = "0.4.2"
|
||||
hmac = { version = "0.7.1", default-features = false, optional = true }
|
||||
log = { version = "0.4.8", default-features = false }
|
||||
md-5 = { version = "0.8.0", default-features = false, optional = true }
|
||||
memchr = { version = "2.3.0", default-features = false }
|
||||
num-bigint = { version = "0.2.5", default-features = false, optional = true, features = [ "std" ] }
|
||||
memchr = { version = "2.3.3", default-features = false }
|
||||
num-bigint = { version = "0.2.6", default-features = false, optional = true, features = [ "std" ] }
|
||||
percent-encoding = "2.1.0"
|
||||
rand = { version = "0.7.3", default-features = false, optional = true, features = [ "std" ] }
|
||||
sha-1 = { version = "0.8.2", default-features = false, optional = true }
|
||||
sha2 = { version = "0.8.1", default-features = false, optional = true }
|
||||
tokio = { version = "0.2.13", default-features = false, features = [ "dns", "fs", "time", "tcp" ], optional = true }
|
||||
url = { version = "2.1.1", default-features = false }
|
||||
uuid = { version = "0.8.1", default-features = false, optional = true, features = [ "std" ] }
|
||||
hmac = { version = "0.7.1", default-features = false, optional = true }
|
||||
hex = "0.4.2"
|
||||
|
||||
[dev-dependencies]
|
||||
matches = "0.1.8"
|
||||
|
@ -81,6 +81,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused_macros)]
|
||||
macro_rules! impl_execute_for_query {
|
||||
($db:ty) => {
|
||||
impl<'q> $crate::executor::Execute<'q, $db> for $crate::query::Query<'q, $db> {
|
||||
|
@ -149,6 +149,7 @@ fn deadline_as_timeout(deadline: Instant) -> crate::Result<Duration> {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(dead_code)]
|
||||
fn assert_pool_traits() {
|
||||
fn assert_send_sync<T: Send + Sync>() {}
|
||||
fn assert_clone<T: Clone>() {}
|
||||
|
@ -164,7 +164,7 @@ impl AuthenticationSaslContinue {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{Authentication, Decode};
|
||||
use super::Authentication;
|
||||
use crate::postgres::protocol::authentication::AuthenticationMd5;
|
||||
use matches::assert_matches;
|
||||
|
||||
|
@ -26,7 +26,7 @@ impl CommandComplete {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{CommandComplete, Decode};
|
||||
use super::CommandComplete;
|
||||
|
||||
const COMMAND_COMPLETE_INSERT: &[u8] = b"INSERT 0 1\0";
|
||||
const COMMAND_COMPLETE_UPDATE: &[u8] = b"UPDATE 512\0";
|
||||
|
@ -24,7 +24,7 @@ impl ParameterDescription {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{Decode, ParameterDescription};
|
||||
use super::ParameterDescription;
|
||||
|
||||
#[test]
|
||||
fn it_reads_parameter_description() {
|
||||
|
@ -225,7 +225,7 @@ impl Response {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{Decode, Response, Severity};
|
||||
use super::{Response, Severity};
|
||||
use matches::assert_matches;
|
||||
|
||||
const RESPONSE: &[u8] = b"SNOTICE\0VNOTICE\0C42710\0Mextension \"uuid-ossp\" already exists, \
|
||||
|
@ -54,7 +54,7 @@ impl RowDescription {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{Decode, RowDescription};
|
||||
use super::RowDescription;
|
||||
|
||||
#[test]
|
||||
fn it_reads_row_description() {
|
||||
|
@ -17,9 +17,6 @@ impl Encode for SslRequest {
|
||||
|
||||
#[test]
|
||||
fn test_ssl_request() {
|
||||
use crate::encode::Encode;
|
||||
use crate::io::Buf;
|
||||
|
||||
let mut buf = Vec::new();
|
||||
SslRequest.encode(&mut buf);
|
||||
|
||||
|
@ -68,6 +68,7 @@ where
|
||||
// rust, please open up a 100 issues and shout as loud as you can to remove
|
||||
// this unseemly hack.
|
||||
|
||||
#[allow(unused_macros)]
|
||||
macro_rules! make_query_as {
|
||||
($name:ident, $db:ident, $row:ident) => {
|
||||
pub trait $name<'q, O> {
|
||||
|
@ -30,13 +30,13 @@ chrono = [ "sqlx/chrono" ]
|
||||
uuid = [ "sqlx/uuid" ]
|
||||
|
||||
[dependencies]
|
||||
async-std = { version = "1.4.0", default-features = false, optional = true }
|
||||
tokio = { version = "0.2.9", default-features = false, features = [ "rt-threaded" ], optional = true }
|
||||
async-std = { version = "1.5.0", default-features = false, optional = true }
|
||||
tokio = { version = "0.2.13", default-features = false, features = [ "rt-threaded" ], optional = true }
|
||||
dotenv = { version = "0.15.0", default-features = false }
|
||||
futures = { version = "0.3.1", default-features = false, features = [ "executor" ] }
|
||||
proc-macro2 = { version = "1.0.7", default-features = false }
|
||||
futures = { version = "0.3.4", default-features = false, features = [ "executor" ] }
|
||||
proc-macro2 = { version = "1.0.9", default-features = false }
|
||||
sqlx = { version = "0.2.6", default-features = false, path = "../sqlx-core", package = "sqlx-core" }
|
||||
syn = { version = "1.0.13", default-features = false, features = [ "full" ] }
|
||||
syn = { version = "1.0.16", default-features = false, features = [ "full" ] }
|
||||
quote = { version = "1.0.2", default-features = false }
|
||||
url = { version = "2.1.1", default-features = false }
|
||||
lazy_static = { version = "1.4.0", optional = true }
|
||||
|
@ -8,5 +8,5 @@ sqlx = { default-features = false, path = ".." }
|
||||
env_logger = "0.7.1"
|
||||
dotenv = "0.15.0"
|
||||
anyhow = "1.0.26"
|
||||
async-std = { version = "1.4.0", features = [ "attributes" ] }
|
||||
tokio = { version = "0.2.9", features = [ "full" ] }
|
||||
async-std = { version = "1.5.0", features = [ "attributes" ] }
|
||||
tokio = { version = "0.2.13", features = [ "full" ] }
|
||||
|
Loading…
x
Reference in New Issue
Block a user