Commit 6c6b066e authored by Nugine's avatar Nugine
Browse files

refactor: move protocol types

parent e5557c47
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2429,6 +2429,7 @@ dependencies = [
 "futures",
 "hex-simd",
 "hmac 0.13.0-pre.5",
 "http 1.3.1",
 "http-body 1.0.1",
 "http-body-util",
 "httparse",
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ pub fn codegen(ops: &Operations) {
        "",
        "use crate::dto::*;",
        "use crate::error::S3Result;",
        "use crate::request::S3Request;",
        "use crate::protocol::S3Request;",
        "",
        "#[async_trait::async_trait]",
        "pub trait S3Access: Send + Sync + 'static {",
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ pub fn codegen(ops: &Operations) {
    g([
        "use crate::dto::*;",
        "use crate::error::S3Result;",
        "use crate::request::S3Request;",
        "use crate::response::S3Response;",
        "use crate::protocol::S3Request;",
        "use crate::protocol::S3Response;",
        "",
        "/// An async trait which represents the S3 API",
        "#[async_trait::async_trait]",
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ sync_wrapper = { version = "1.0.2", default-features = false }
tokio = { version = "1.44.1", features = ["time"] }
crc64fast-nvme = "1.2.0"
const-str = "0.6.2"
http = "1.3.1"

[dev-dependencies]
axum = "0.8.3"
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ use super::S3AccessContext;

use crate::dto::*;
use crate::error::S3Result;
use crate::request::S3Request;
use crate::protocol::S3Request;

#[async_trait::async_trait]
pub trait S3Access: Send + Sync + 'static {
Loading