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::{
body::{Bytes, Full},
extract::{DefaultBodyLimit, Multipart},
http::StatusCode,
response::{IntoResponse, Response},
routing::get,
Router,
};
use magick_rust::{magick_wand_genesis, MagickWand};
use axum::body::Bytes;
use axum::body::Full;
use axum::extract::DefaultBodyLimit;
use axum::extract::Multipart;
use axum::http::StatusCode;
use axum::response::IntoResponse;
use axum::response::Response;
use axum::routing::get;
use axum::Router;
use magick_rust::magick_wand_genesis;
use magick_rust::MagickWand;
use tower_http::limit::RequestBodyLimitLayer;
static START: Once = Once::new();