fmt: improve formatting
This commit is contained in:
+7
-7
@@ -7,10 +7,15 @@ edition = "2024"
|
|||||||
axum = "0.8.9"
|
axum = "0.8.9"
|
||||||
serde = { version = "1.0.228", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
serde_json = "1.0.150"
|
serde_json = "1.0.150"
|
||||||
time = { version = "0.3.47", features = ["serde", "formatting"] }
|
time = { version = "0.3.47", features = ["formatting", "serde"] }
|
||||||
tokio = { version = "1.52.3", features = ["full"] }
|
tokio = { version = "1.52.3", features = ["full"] }
|
||||||
tower-http = { version = "0.6.11", features = ["fs"] }
|
tower-http = { version = "0.6.11", features = ["fs"] }
|
||||||
uuid = { version = "1.23.2", features = ["v4", "serde"] }
|
uuid = { version = "1.23.2", features = ["serde", "v4"] }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
http-body-util = "0.1.3"
|
||||||
|
tempfile = "3.27.0"
|
||||||
|
tower = { version = "0.5.3", features = ["util"] }
|
||||||
|
|
||||||
[lints.clippy]
|
[lints.clippy]
|
||||||
pedantic = { level = "warn", priority = -1 }
|
pedantic = { level = "warn", priority = -1 }
|
||||||
@@ -26,8 +31,3 @@ strip = true
|
|||||||
lto = true
|
lto = true
|
||||||
panic = "unwind"
|
panic = "unwind"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
http-body-util = "0.1.3"
|
|
||||||
tempfile = "3.27.0"
|
|
||||||
tower = { version = "0.5.3", features = ["util"] }
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
fmt:
|
fmt:
|
||||||
cargo fmt --all
|
cargo +nightly fmt --all
|
||||||
|
fd -e toml -x tombi format --quiet
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cargo test --all-targets
|
cargo test --all-targets
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
imports_layout = "HorizontalVertical"
|
||||||
|
|||||||
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
use axum::{
|
use axum::{
|
||||||
Json,
|
Json,
|
||||||
body::Bytes,
|
body::Bytes,
|
||||||
extract::Path,
|
extract::{Path, State},
|
||||||
extract::State,
|
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
response::{IntoResponse, Response},
|
response::{IntoResponse, Response},
|
||||||
};
|
};
|
||||||
|
|||||||
+5
-1
@@ -9,7 +9,11 @@ use tokio::{fs, io::AsyncWriteExt};
|
|||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::model::{
|
use crate::model::{
|
||||||
CHUNK_SIZE, CompleteUploadResponse, CreateUploadRequest, UploadMeta, UploadProgressResponse,
|
CHUNK_SIZE,
|
||||||
|
CompleteUploadResponse,
|
||||||
|
CreateUploadRequest,
|
||||||
|
UploadMeta,
|
||||||
|
UploadProgressResponse,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user