Skip to content

Commit

Permalink
storage: disable remote access related code
Browse files Browse the repository at this point in the history
Disable remote access related code, it's unused currently.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
  • Loading branch information
jiangliu committed Sep 30, 2022
1 parent 0688b9a commit a59c408
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 143 deletions.
168 changes: 35 additions & 133 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion rafs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ nix = "0.24"
serde = { version = "1.0.110", features = ["serde_derive", "rc"] }
serde_json = "1.0.53"
spmc = "0.3.0"
url = { version = "2.1.1", optional = true }
vm-memory = "0.9"
fuse-backend-rs = { version = "0.9" }

Expand Down
10 changes: 3 additions & 7 deletions storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ repository = "https://github.com/dragonflyoss/image-service"
edition = "2018"

[dependencies]
anyhow = "1.0.35"
arc-swap = "1.5"
base64 = { version = "0.13.0", optional = true }
bitflags = "1.2.1"
dbs-uhttp = { version = "0.3.0" }
futures = "0.3"
hmac-sha1-compact = { version = "1.1.1", optional = true }
httpdate = { version = "1.0", optional = true }
lazy_static = "1.4.0"
Expand All @@ -23,12 +20,11 @@ libc = "0.2"
log = "0.4.8"
nix = "0.24"
reqwest = { version = "0.11.11", features = ["blocking", "json"], optional = true }
serde = { version = "1.0.110", features = ["serde_derive", "rc"] }
serde = { version = "1.0.110", features = ["serde_derive", "rc"], optional = true }
serde_json = "1.0.53"
tokio = { version = "1.19.0", features = ["rt", "rt-multi-thread", "sync", "time"] }
url = { version = "2.1.1", optional = true }
vm-memory = "0.9"
vmm-sys-util = "0.10"
fuse-backend-rs = { version = "0.9" }

nydus-api = { version = "0.1", path = "../api" }
Expand All @@ -39,8 +35,8 @@ nydus-error = { version = "0.2", path = "../error" }

[features]
backend-localfs = []
backend-oss = ["base64", "httpdate", "hmac-sha1-compact", "reqwest", "url"]
backend-registry = ["base64", "reqwest", "url"]
backend-oss = ["base64", "httpdate", "hmac-sha1-compact", "reqwest"]
backend-registry = ["base64", "reqwest", "serde", "url"]

[package.metadata.docs.rs]
all-features = true
Expand Down
3 changes: 1 addition & 2 deletions storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ extern crate log;
extern crate bitflags;
#[macro_use]
extern crate nydus_error;
extern crate dbs_uhttp;

use std::fmt::{Display, Formatter};

Expand All @@ -52,7 +51,7 @@ pub mod cache;
pub mod device;
pub mod factory;
pub mod meta;
pub mod remote;
//pub mod remote;
#[cfg(test)]
pub(crate) mod test;
pub mod utils;
Expand Down

0 comments on commit a59c408

Please sign in to comment.