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 <teawater@antgroup.com>
This commit is contained in:
Hui Zhu
2024-11-28 10:01:50 +08:00
parent 4407f6e098
commit ffc8390a60
2 changed files with 27 additions and 0 deletions

26
src/agent/Cargo.lock generated
View File

@@ -3026,6 +3026,7 @@ dependencies = [
"libc", "libc",
"log", "log",
"logging", "logging",
"mem-agent",
"netlink-packet-utils", "netlink-packet-utils",
"netlink-sys", "netlink-sys",
"nix 0.24.3", "nix 0.24.3",
@@ -3483,6 +3484,21 @@ dependencies = [
"digest", "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]] [[package]]
name = "memchr" name = "memchr"
version = "2.7.4" version = "2.7.4"
@@ -4108,6 +4124,16 @@ dependencies = [
"sha2", "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]] [[package]]
name = "parking" name = "parking"
version = "2.2.0" version = "2.2.0"

View File

@@ -7,6 +7,7 @@ license = "Apache-2.0"
[dependencies] [dependencies]
runtime-spec = { path = "../libs/runtime-spec" } runtime-spec = { path = "../libs/runtime-spec" }
mem-agent = { path = "../mem-agent" }
oci-spec = { version = "0.6.8", features = ["runtime"] } oci-spec = { version = "0.6.8", features = ["runtime"] }
rustjail = { path = "rustjail" } rustjail = { path = "rustjail" }
protocols = { path = "../libs/protocols", features = ["async", "with-serde"] } protocols = { path = "../libs/protocols", features = ["async", "with-serde"] }