forked from Zynh0722/nyazoom
reorg imports
parent
25cee6b111
commit
9caf7b78fe
20
src/main.rs
20
src/main.rs
|
@ -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<()> {
|
||||
|
|
Loading…
Reference in New Issue