fix: 调整cargo引用 & Endpoint修改

This commit is contained in:
shiro.lee
2024-06-25 23:28:05 +08:00
parent 918a263fd0
commit 2681bbd08f
8 changed files with 111 additions and 86 deletions
+9 -16
View File
@@ -8,23 +8,16 @@ rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "rustfs"
# required-features = ["binary"]
# [features]
# binary = ["tokio/full", "dep:clap", "dep:tracing-subscriber", "dep:hyper-util"]
[dependencies]
ecstore = { path = "../ecstore" }
clap = { version = "4.5.7", features = ["derive"] }
s3s = { version = "0.10.0" }
anyhow = { version = "1.0.86" }
tracing = { workspace = true }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "time"] }
async-trait.workspace = true
tracing.workspace = true
anyhow.workspace = true
time = { workspace = true, features = ["parsing", "formatting"] }
async-trait = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "net", "signal"] }
ecstore = { path = "../ecstore" }
s3s = "0.10.0"
clap = { version = "4.5.7", features = ["derive"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "time"] }
hyper-util = { version = "0.1.5", features = ["tokio", "server-auto", "server-graceful"] }
-1
View File
@@ -3,7 +3,6 @@ mod storage;
use anyhow::Result;
use clap::Parser;
use ecstore::store::ECStore;
use hyper_util::{
rt::{TokioExecutor, TokioIo},
server::conn::auto::Builder as ConnBuilder,
-3
View File
@@ -1,4 +1 @@
pub mod ecfs;
mod simple_fs;
pub use simple_fs::SimpleFS;
-6
View File
@@ -1,6 +0,0 @@
use s3s::S3;
pub struct SimpleFS {}
#[async_trait::async_trait]
impl S3 for SimpleFS {}