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
Cargo.lock generated
View File

@@ -2773,6 +2773,7 @@ dependencies = [
"serde_json",
"thiserror",
"vm-memory",
"zerocopy",
]
[[package]]