From d533a7961f3f4765b71336b1ae898f84cd6b650a Mon Sep 17 00:00:00 2001 From: SHAcollision <127778313+SHAcollision@users.noreply.github.com> Date: Wed, 19 Feb 2025 11:18:39 -0400 Subject: [PATCH] chore: remove unused deps moved to specs crate (#344) --- Cargo.lock | 2 -- Cargo.toml | 6 ++---- src/routes/static.rs | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4a3db6c5..5f18596b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2819,8 +2819,6 @@ dependencies = [ "anyhow", "async-trait", "axum", - "base32", - "blake3", "bytes", "chrono", "const_format", diff --git a/Cargo.toml b/Cargo.toml index ac89ae49..4420afc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,11 +33,7 @@ env_logger = "0.11.6" const_format = "0.2.34" thiserror = "2.0.11" chrono = { version = "0.4.39", default-features = false, features = ["clock"] } -base32 = "0.5.1" -blake3 = "1.6.0" -url = "2.5.4" async-trait = "0.1.85" -reqwest = "0.12.9" [dev-dependencies] anyhow = "1.0.95" @@ -47,6 +43,8 @@ pubky-homeserver = { git = "https://github.com/pubky/pubky", branch = "main" } rand = "0.8.5" rand_distr = "0.4.3" tokio-shared-rt = "0.1" +url = "2.5.4" +reqwest = "0.12.12" [lib] name = "pubky_nexus" diff --git a/src/routes/static.rs b/src/routes/static.rs index a8be9be3..4c9f38d8 100644 --- a/src/routes/static.rs +++ b/src/routes/static.rs @@ -4,13 +4,12 @@ use crate::{ }; use axum::{ extract::Request, - http::HeaderValue, + http::{HeaderValue, StatusCode}, middleware::{self, Next}, response::Response, routing::get_service, Router, }; -use reqwest::StatusCode; use tower_http::services::ServeDir; async fn static_files_middleware(request: Request, next: Next) -> Result {