Re: [RFC PATCH 7/9] rust: qemu_api: add vmstate_struct and vmstate_cell

2025-01-07 Thread Paolo Bonzini
On Tue, Dec 31, 2024 at 1:23 AM Paolo Bonzini wrote: > > These are not type safe, but they're the best that can be done without > const_refs_static. > > Signed-off-by: Paolo Bonzini FWIW, I'll change these patch to support varrays in v2. Paolo > --- > rust/qemu-api/src/vmstate.rs | 34 +++

[RFC PATCH 7/9] rust: qemu_api: add vmstate_struct and vmstate_cell

2024-12-30 Thread Paolo Bonzini
These are not type safe, but they're the best that can be done without const_refs_static. Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/vmstate.rs | 34 ++ 1 file changed, 34 insertions(+) diff --git a/rust/qemu-api/src/vmstate.rs b/rust/qemu-api/src/vmstate