chore: update dependencies

This commit is contained in:
Ryan Leckey 2021-04-09 00:31:07 -07:00
parent 98cd619157
commit 633a662752
7 changed files with 267 additions and 350 deletions

591
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -101,7 +101,7 @@ sqlx-macros = { version = "0.5.1", path = "sqlx-macros", default-features = fals
anyhow = "1.0.31"
time_ = { version = "0.2.16", package = "time" }
futures = "0.3.5"
env_logger = "0.7.1"
env_logger = "0.8.3"
async-std = { version = "1.8.0", features = [ "attributes" ] }
tokio = { version = "1.0.1", features = [ "full" ] }
dotenv = "0.15.0"

View File

@ -34,14 +34,14 @@ chrono = "0.4"
anyhow = "1.0"
url = { version = "2.1.1", default-features = false }
async-trait = "0.1.30"
console = "0.11.3"
dialoguer = "0.7.1"
console = "0.14.1"
dialoguer = "0.8.0"
serde_json = "1.0.53"
serde = { version = "1.0.110", features = ["derive"] }
glob = "0.3.0"
openssl = { version = "0.10.30", optional = true }
# workaround for https://github.com/rust-lang/rust/issues/29497
remove_dir_all = "0.6.0"
remove_dir_all = "0.7.0"
[features]
default = [ "postgres", "sqlite", "mysql" ]

View File

@ -53,7 +53,7 @@ _tls-rustls = [ "rustls", "webpki", "webpki-roots" ]
offline = [ "serde", "either/serde" ]
[dependencies]
ahash = "0.6.2"
ahash = "0.7.2"
atoi = "0.4.0"
sqlx-rt = { path = "../sqlx-rt", version = "0.3.0" }
base64 = { version = "0.13.0", default-features = false, optional = true, features = [ "std" ] }
@ -81,7 +81,7 @@ hmac = { version = "0.10.1", default-features = false, optional = true }
itoa = "0.4.5"
ipnetwork = { version = "0.17.0", default-features = false, optional = true }
libc = "0.2.71"
libsqlite3-sys = { version = "0.20.1", optional = true, default-features = false, features = [ "pkg-config", "vcpkg", "bundled" ] }
libsqlite3-sys = { version = "0.22.0", optional = true, default-features = false, features = [ "pkg-config", "vcpkg", "bundled" ] }
log = { version = "0.4.8", default-features = false }
md-5 = { version = "0.9.0", default-features = false, optional = true }
memchr = { version = "2.3.3", default-features = false }
@ -89,9 +89,9 @@ num-bigint = { version = "0.3.1", default-features = false, optional = true, fea
once_cell = "1.5.2"
percent-encoding = "2.1.0"
parking_lot = "0.11.0"
rand = { version = "0.7.3", default-features = false, optional = true, features = [ "std" ] }
rand = { version = "0.8.3", default-features = false, optional = true, features = [ "std" ] }
regex = { version = "1.3.9", optional = true }
rsa = { version = "0.3.0", optional = true }
rsa = { version = "0.4.0", optional = true }
rustls = { version = "0.19.0", features = [ "dangerous_configuration" ], optional = true }
serde = { version = "1.0.106", features = [ "derive", "rc" ], optional = true }
serde_json = { version = "1.0.51", features = [ "raw_value" ], optional = true }

View File

@ -171,7 +171,7 @@ pub(crate) async fn authenticate(
// nonce is a sequence of random printable bytes
fn gen_nonce() -> String {
let mut rng = rand::thread_rng();
let count = rng.gen_range(64, 128);
let count = rng.gen_range(64..128);
// printable = %x21-2B / %x2D-7E
// ;; Printable ASCII except ",".
@ -179,10 +179,10 @@ fn gen_nonce() -> String {
// ;; a valid "value".
let nonce: String = std::iter::repeat(())
.map(|()| {
let mut c = rng.gen_range(0x21, 0x7F) as u8;
let mut c = rng.gen_range(0x21..0x7F) as u8;
while c == 0x2C {
c = rng.gen_range(0x21, 0x7F) as u8;
c = rng.gen_range(0x21..0x7F) as u8;
}
c
@ -191,7 +191,7 @@ fn gen_nonce() -> String {
.map(|c| c as char)
.collect();
rng.gen_range(32, 128);
rng.gen_range(32..128);
format!("{}={}", NONCE_ATTR, nonce)
}

View File

@ -1,4 +1,3 @@
use crate::error::Error;
use std::str::FromStr;
#[derive(Debug, Clone)]

View File

@ -1,4 +1,3 @@
use crate::error::Error;
use std::str::FromStr;
#[derive(Debug, Clone)]