1
0
Fork 0

the great util immigration

Zynh Ludwig 2024-08-29 22:48:47 -07:00
parent 7fb872b166
commit 9bc5067bef
6 changed files with 7 additions and 6 deletions

View File

@ -13,8 +13,6 @@ use axum_extra::TypedHeader;
use futures::TryStreamExt;
use nyazoom_headers::ForwardedFor;
use sanitize_filename_reader_friendly::sanitize;
use std::{io, net::SocketAddr, path::Path};
@ -27,14 +25,12 @@ use tokio_util::{
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
mod cache;
mod logging;
mod nyazoom_headers;
mod ssr;
mod state;
mod sweeper;
mod util;
mod views;
use util::{headers::ForwardedFor, logging, ssr, sweeper};
use state::{AppState, UploadRecord};
use crate::state::*;

View File

@ -1,3 +1,8 @@
pub mod headers;
pub mod logging;
pub mod ssr;
pub mod sweeper;
use rand::{
distributions::{Alphanumeric, DistString},
rngs::SmallRng,