Skip to content

Commit

Permalink
refactor: clean up unused deps
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Aug 17, 2023
1 parent c809ea3 commit dd078b7
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 61 deletions.
48 changes: 0 additions & 48 deletions Cargo.lock

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

4 changes: 0 additions & 4 deletions crates/containerd-shim-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ log = { workspace = true }
clone3 = "0.2"
libc = { workspace = true }
caps = "0.5"
proc-mounts = "0.3"
libcontainer = { workspace = true, optional = true, default-features = false }
cgroups-rs = "0.3.3"

Expand All @@ -36,10 +35,7 @@ ttrpc-codegen = { version = "0.4.2", optional = true }

[dev-dependencies]
tempfile = "3"
pretty_assertions = "1"
signal-hook = "0.3"
env_logger = { workspace = true }
rand = "0.8"

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions crates/containerd-shim-wasm/src/sandbox/instance_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mod tests {
write!(&opts_file, "{}", serde_json::to_string(&opts)?)?;
let root = determine_rootdir(
dir.path(),
namespace.into(),
namespace,
&PathBuf::from("/run/containerd/runtime"),
)?;
assert_eq!(root, rootdir.join(namespace));
Expand All @@ -145,7 +145,7 @@ mod tests {
let namespace = "test_namespace";
let root = determine_rootdir(
dir.path(),
namespace.into(),
namespace,
&PathBuf::from("/run/containerd/runtime"),
)?;
assert!(root.is_absolute());
Expand Down
2 changes: 0 additions & 2 deletions crates/containerd-shim-wasmedge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ wasmedge-sdk = { version = "0.11.2" }
wasmedge-sys = "*"
chrono = { workspace = true }
anyhow = { workspace = true }
cap-std = { workspace = true }
oci-spec = { workspace = true, features = ["runtime"] }
thiserror = { workspace = true }
serde_json = { workspace = true }
Expand All @@ -23,7 +22,6 @@ dbus = { version = "*", optional = true }

[dev-dependencies]
tempfile = "3.7"
pretty_assertions = "1"
serial_test = "*"

[features]
Expand Down
3 changes: 1 addition & 2 deletions crates/containerd-shim-wasmedge/src/instance.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use anyhow::Context;
use anyhow::Result;
use containerd_shim_wasm::libcontainer_instance::LibcontainerInstance;
use containerd_shim_wasm::libcontainer_instance::LinuxContainerExecutor;
use containerd_shim_wasm::sandbox::error::Error;
Expand Down Expand Up @@ -191,7 +190,7 @@ mod wasitest {
fn run_wasi_test(dir: &TempDir, wasmbytes: Cow<[u8]>) -> Result<(u32, DateTime<Utc>), Error> {
create_dir(dir.path().join("rootfs"))?;
let rootdir = dir.path().join("runwasi");
create_dir(&rootdir)?;
create_dir(rootdir)?;
let rootdir = PathBuf::from("/path/to/root");
let mut opts = HashMap::new();
opts.insert("root", rootdir);
Expand Down
1 change: 0 additions & 1 deletion crates/containerd-shim-wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ libc = { workspace = true }
[dev-dependencies]
tempfile = "3.7"
libc = { workspace = true }
pretty_assertions = "1"
env_logger = "0.10"

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/containerd-shim-wasmtime/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ mod wasitest {
) -> Result<(u32, DateTime<Utc>), Error> {
create_dir(dir.path().join("rootfs"))?;
let rootdir = dir.path().join("runwasi");
create_dir(&rootdir)?;
create_dir(rootdir)?;
let rootdir = PathBuf::from("/path/to/root");
let mut opts = HashMap::new();
opts.insert("root", rootdir);
Expand Down
1 change: 0 additions & 1 deletion crates/oci-tar-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition.workspace = true
tar = { workspace = true }
sha256 = { workspace = true }
log = { workspace = true }
env_logger = { workspace = true }
oci-spec = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
Expand Down

0 comments on commit dd078b7

Please sign in to comment.