chore: update cargo deps

This commit is contained in:
dusk 2023-10-13 21:50:59 +03:00
parent 2ee0620d23
commit 029e45aee8
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
3 changed files with 330 additions and 283 deletions

599
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@ edition = "2021"
[dependencies]
axum = {version = "0.6", features = ["ws", "headers"]}
axum-server = {version = "0.4", features = ["tls-rustls"]}
axum-server = {version = "0.5", features = ["tls-rustls"]}
tokio = {version = "1", features = ["rt-multi-thread"]}
dotenvy = "0.15"
tracing = "0.1"
@ -13,13 +13,13 @@ tracing-subscriber = {version = "0.3", features = ["env-filter"]}
tower-http = {version = "0.4", features = ["trace", "cors", "sensitive-headers", "request-id"]}
hyper = {version = "0.14", features = ["client"]}
http = "0.2"
async-tungstenite = {version = "0.21", features = ["tokio-runtime"]}
axum-tungstenite = {package = "tungstenite", version = "0.18"}
async-tungstenite = {version = "0.23", features = ["tokio-runtime"]}
axum-tungstenite = {package = "tungstenite", version = "0.20"}
futures = {version = "0.3"}
serde = {version = "1", features = ["derive"]}
serde_json = "1"
rust-argon2 = "1.0"
rust-argon2 = "2.0"
rand = "0.8"
scc = "1"
scc = "2"
base64 = "0.21"
serde_qs = "0.12"

View File

@ -56,7 +56,7 @@ impl Tokens {
pub async fn write(&self, path: impl AsRef<Path>) -> Result<(), AppError> {
let mut contents = String::new();
self.hashed
.for_each_async(|hash| {
.scan_async(|hash| {
writeln!(&mut contents, "{hash}").expect("if this fails then too bad")
})
.await;