Use vm-memory v0.18.0 for QEMU.

By the way, the dependency relationship for system-sys and hwcore-sys is
also updated in Cargo.lock.

Signed-off-by: Zhao Liu <[email protected]>
---
Changes since v1:
 * Upgrade vm-memory dependency to v0.18.0
 * Update Cargo.lock.
---
 rust/Cargo.lock        | 33 ++++++++++++++++++++++++++++++++-
 rust/Cargo.toml        |  1 +
 rust/system/Cargo.toml |  1 +
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index cbb3ca15f77f..6d4701930419 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -184,7 +184,6 @@ dependencies = [
  "glib-sys",
  "migration-sys",
  "qom-sys",
- "system-sys",
  "util-sys",
 ]
 
@@ -410,6 +409,7 @@ dependencies = [
  "qom",
  "system-sys",
  "util",
+ "vm-memory",
 ]
 
 [[package]]
@@ -431,6 +431,7 @@ version = "0.1.0"
 dependencies = [
  "common",
  "glib-sys",
+ "hwcore-sys",
  "migration-sys",
  "qom-sys",
  "util-sys",
@@ -456,6 +457,26 @@ dependencies = [
  "util",
 ]
 
+[[package]]
+name = "thiserror"
+version = "2.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
+dependencies = [
+ "thiserror-impl",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
 [[package]]
 name = "toml"
 version = "0.8.23"
@@ -535,6 +556,16 @@ version = "0.9.4"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
 
+[[package]]
+name = "vm-memory"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "9b55e753c7725603745cb32b2287ef7ef3da05c03c7702cda3fa8abe25ae0465"
+dependencies = [
+ "libc",
+ "thiserror",
+]
+
 [[package]]
 name = "winnow"
 version = "0.7.13"
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 0d24eb84e1cd..cfc540a77335 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -20,6 +20,7 @@ anyhow = "~1.0"
 foreign = "~0.3.1"
 libc = "0.2.162"
 glib-sys = { version = "0.21.2", features = ["v2_66"] }
+vm-memory = "0.18.0"
 
 [workspace.lints.rust]
 unexpected_cfgs = { level = "deny", check-cfg = ['cfg(MESON)'] }
diff --git a/rust/system/Cargo.toml b/rust/system/Cargo.toml
index d62173703173..179c38ecc27f 100644
--- a/rust/system/Cargo.toml
+++ b/rust/system/Cargo.toml
@@ -21,6 +21,7 @@ migration = { path = "../migration" }
 qom = { path = "../qom" }
 util = { path = "../util" }
 glib-sys.workspace = true
+vm-memory.workspace = true
 
 [lints]
 workspace = true
-- 
2.34.1


Reply via email to