Cargo.toml: update dependencies

This commit is contained in:
Astro 2025-01-18 23:11:20 +01:00
parent 7b50baf1ce
commit 3ab249ebda
3 changed files with 13 additions and 27 deletions

34
Cargo.lock generated
View file

@ -121,13 +121,13 @@ dependencies = [
[[package]] [[package]]
name = "axum" name = "axum"
version = "0.7.9" version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8"
dependencies = [ dependencies = [
"async-trait",
"axum-core", "axum-core",
"bytes", "bytes",
"form_urlencoded",
"futures-util", "futures-util",
"http", "http",
"http-body", "http-body",
@ -155,11 +155,10 @@ dependencies = [
[[package]] [[package]]
name = "axum-core" name = "axum-core"
version = "0.4.5" version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" checksum = "df1362f362fd16024ae199c1970ce98f9661bf5ef94b9808fee734bc3698b733"
dependencies = [ dependencies = [
"async-trait",
"bytes", "bytes",
"futures-util", "futures-util",
"http", "http",
@ -219,7 +218,7 @@ dependencies = [
"bitflags", "bitflags",
"cexpr", "cexpr",
"clang-sys", "clang-sys",
"itertools 0.12.1", "itertools",
"lazy_static", "lazy_static",
"lazycell", "lazycell",
"log", "log",
@ -1207,15 +1206,6 @@ dependencies = [
"either", "either",
] ]
[[package]]
name = "itertools"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
dependencies = [
"either",
]
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.14" version = "1.0.14"
@ -1349,9 +1339,9 @@ dependencies = [
[[package]] [[package]]
name = "matchit" name = "matchit"
version = "0.7.3" version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"
[[package]] [[package]]
name = "md-5" name = "md-5"
@ -1886,18 +1876,16 @@ dependencies = [
[[package]] [[package]]
name = "redis" name = "redis"
version = "0.27.6" version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09d8f99a4090c89cc489a94833c901ead69bfbf3877b4867d5482e321ee875bc" checksum = "9f89727cba9cec05cc579942321ff6dd09fe57a8b3217f52f952301efa010da5"
dependencies = [ dependencies = [
"arc-swap", "arc-swap",
"async-trait",
"backon", "backon",
"bytes", "bytes",
"combine", "combine",
"futures", "futures-channel",
"futures-util", "futures-util",
"itertools 0.13.0",
"itoa", "itoa",
"num-bigint", "num-bigint",
"percent-encoding", "percent-encoding",

View file

@ -6,7 +6,7 @@ repository = "https://github.com/astro/buzzrelay"
homepage = "https://relay.fedi.buzz" homepage = "https://relay.fedi.buzz"
[dependencies] [dependencies]
axum = "0.7" axum = "0.8"
tower-http = { version = "0.6", features = ["fs"] } tower-http = { version = "0.6", features = ["fs"] }
tokio = { version = "1", features = ["full", "time"] } tokio = { version = "1", features = ["full", "time"] }
tracing = "*" tracing = "*"
@ -30,5 +30,5 @@ metrics-exporter-prometheus = "0.16"
deunicode = "1.4" deunicode = "1.4"
urlencoding = "2" urlencoding = "2"
httpdate = "1" httpdate = "1"
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] } redis = { version = "0.28", features = ["tokio-comp", "connection-manager"] }
lru = "0.12" lru = "0.12"

View file

@ -1,7 +1,6 @@
use std::sync::Arc; use std::sync::Arc;
use axum::{ use axum::{
async_trait,
body::{Bytes, Body}, body::{Bytes, Body},
extract::{FromRef, FromRequest}, extract::{FromRef, FromRequest},
http::{header::CONTENT_TYPE, Request, StatusCode}, http::{header::CONTENT_TYPE, Request, StatusCode},
@ -27,7 +26,6 @@ pub struct Endpoint<'a> {
pub remote_actor_uri: String, pub remote_actor_uri: String,
} }
#[async_trait]
impl<'a, S> FromRequest<S> for Endpoint<'a> impl<'a, S> FromRequest<S> for Endpoint<'a>
where where
S: Send + Sync, S: Send + Sync,