1
0
Fork 0

reorg imports

Zynh Ludwig 2024-08-29 22:50:21 -07:00
parent 25cee6b111
commit 9caf7b78fe
1 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,11 @@
use async_zip::{tokio::write::ZipFileWriter, Compression, ZipEntryBuilder};
use futures::TryStreamExt;
use tokio_util::{
compat::FuturesAsyncWriteCompatExt,
io::{ReaderStream, StreamReader},
};
use axum::{
body::Body,
extract::{ConnectInfo, DefaultBodyLimit, Multipart, Request, State},
@ -10,20 +16,12 @@ use axum::{
Json, Router,
};
use axum_extra::TypedHeader;
use futures::TryStreamExt;
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
use sanitize_filename_reader_friendly::sanitize;
use std::{io, net::SocketAddr, path::Path};
use tokio_util::{
compat::FuturesAsyncWriteCompatExt,
io::{ReaderStream, StreamReader},
};
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
mod cache;
mod state;
mod util;
@ -31,8 +29,8 @@ mod views;
use util::{headers::ForwardedFor, logging, ssr, sweeper};
use crate::state::*;
use crate::views::*;
use state::*;
use views::*;
#[tokio::main]
async fn main() -> io::Result<()> {