vm-migration: Use zerocopy for safe serialization

Getting rid of the unsafe ByteValued implementation for MemoryRange,
Request and Response structures, by relying on zerocopy's safe
implementation instead.

Signed-off-by: Sebastien Boeuf <sboeuf@meta.com>
Assisted-by: Claude:claude-opus-4-8
This commit is contained in:
Sebastien Boeuf
2026-06-26 00:59:52 -07:00
parent 516caed5cc
commit 693c236e06
3 changed files with 37 additions and 40 deletions
+1
View File
@@ -14,6 +14,7 @@ serde = { workspace = true, features = ["derive", "rc"] }
serde_json = { workspace = true }
thiserror = { workspace = true }
vm-memory = { workspace = true, features = ["backend-atomic", "backend-mmap"] }
zerocopy = { workspace = true, features = ["alloc", "derive"] }
[lints]
workspace = true