From ffc8390a60915dc9ca4e0cdce95fd6a58a1e9ef2 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 28 Nov 2024 10:01:50 +0800 Subject: [PATCH] agent: Add mem-agent to Cargo.toml Add mem-agent to Cargo.toml of agent. mem-agent will be integrated into kata-agent. Fixes: #10625 Signed-off-by: Hui Zhu --- src/agent/Cargo.lock | 26 ++++++++++++++++++++++++++ src/agent/Cargo.toml | 1 + 2 files changed, 27 insertions(+) diff --git a/src/agent/Cargo.lock b/src/agent/Cargo.lock index 67b1830278..f94f936f6b 100644 --- a/src/agent/Cargo.lock +++ b/src/agent/Cargo.lock @@ -3026,6 +3026,7 @@ dependencies = [ "libc", "log", "logging", + "mem-agent", "netlink-packet-utils", "netlink-sys", "nix 0.24.3", @@ -3483,6 +3484,21 @@ dependencies = [ "digest", ] +[[package]] +name = "mem-agent" +version = "0.1.0" +dependencies = [ + "anyhow", + "async-trait", + "chrono", + "lazy_static", + "nix 0.23.2", + "page_size", + "slog", + "slog-scope", + "tokio", +] + [[package]] name = "memchr" version = "2.7.4" @@ -4108,6 +4124,16 @@ dependencies = [ "sha2", ] +[[package]] +name = "page_size" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "parking" version = "2.2.0" diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 5dd9c1e261..6b0ab344c1 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -7,6 +7,7 @@ license = "Apache-2.0" [dependencies] runtime-spec = { path = "../libs/runtime-spec" } +mem-agent = { path = "../mem-agent" } oci-spec = { version = "0.6.8", features = ["runtime"] } rustjail = { path = "rustjail" } protocols = { path = "../libs/protocols", features = ["async", "with-serde"] }