From ce7a5ba22ef00ac569bec0788ae4c353906f772d Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Wed, 12 May 2021 14:22:37 +0800 Subject: [PATCH] agent: move the dependency tempfile to the dev-dependencies section The tempfile is only used by tests. Fixes: #1827 Signed-off-by: Tim Zhang --- src/agent/Cargo.toml | 5 +++-- src/agent/rustjail/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 195b53b2f3..6f292dcc32 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -40,13 +40,14 @@ slog-scope = "4.1.2" slog-stdlog = "4.0.0" log = "0.4.11" -# for testing -tempfile = "3.1.0" prometheus = { version = "0.9.0", features = ["process"] } procfs = "0.7.9" anyhow = "1.0.32" cgroups = { package = "cgroups-rs", version = "0.2.5" } +[dev-dependencies] +tempfile = "3.1.0" + [workspace] members = [ "oci", diff --git a/src/agent/rustjail/Cargo.toml b/src/agent/rustjail/Cargo.toml index 55e59f415b..9d65edbf89 100644 --- a/src/agent/rustjail/Cargo.toml +++ b/src/agent/rustjail/Cargo.toml @@ -24,7 +24,6 @@ regex = "1.1" path-absolutize = "1.2.0" anyhow = "1.0.32" cgroups = { package = "cgroups-rs", version = "0.2.5" } -tempfile = "3.1.0" rlimit = "0.5.3" tokio = { version = "1.2.0", features = ["sync", "io-util", "process", "time", "macros"] } @@ -34,3 +33,4 @@ inotify = "0.9.2" [dev-dependencies] serial_test = "0.5.0" +tempfile = "3.1.0"