This commit is contained in:
Timofey Gelazoniya 2023-07-10 22:10:41 +03:00
parent 416e33db7f
commit 56b7a4d843
Signed by: zeldon
GPG Key ID: 047886915281DD2A
2 changed files with 17 additions and 11 deletions

2
rustfmt.toml Normal file
View File

@ -0,0 +1,2 @@
imports_granularity = "Item"
group_imports = "StdExternalCrate"

View File

@ -1,15 +1,19 @@
use std::{env::var, io, net::SocketAddr, sync::Once}; use std::env::var;
use std::io;
use std::net::SocketAddr;
use std::sync::Once;
use axum::{ use axum::body::Bytes;
body::{Bytes, Full}, use axum::body::Full;
extract::{DefaultBodyLimit, Multipart}, use axum::extract::DefaultBodyLimit;
http::StatusCode, use axum::extract::Multipart;
response::{IntoResponse, Response}, use axum::http::StatusCode;
routing::get, use axum::response::IntoResponse;
Router, use axum::response::Response;
}; use axum::routing::get;
use axum::Router;
use magick_rust::{magick_wand_genesis, MagickWand}; use magick_rust::magick_wand_genesis;
use magick_rust::MagickWand;
use tower_http::limit::RequestBodyLimitLayer; use tower_http::limit::RequestBodyLimitLayer;
static START: Once = Once::new(); static START: Once = Once::new();