qemu-cr16/rust
Zhao Liu 7da9ee9207 rust: vmstate: convert to use builder pattern
Similar to MemoryRegionOps, the builder pattern has two advantages:
1) it makes it possible to build a VMStateDescription that knows which
types it will be invoked on; 2) it provides a way to wrap the callbacks
and let devices avoid "unsafe".

Unfortunately, building a static VMStateDescription requires the
builder methods to be "const", and because the VMStateFields are
*also* static, this requires const_refs_static.  So this requires
Rust 1.83.0.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250908105005.2119297-8-pbonzini@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-09-17 19:00:56 +02:00
..
bits rust: add missing const markers for MSRV==1.83.0 2025-09-17 19:00:56 +02:00
hw rust: vmstate: convert to use builder pattern 2025-09-17 19:00:56 +02:00
qemu-api rust: vmstate: convert to use builder pattern 2025-09-17 19:00:56 +02:00
qemu-api-macros rust: add qdev Device derive macro 2025-09-17 19:00:56 +02:00
.gitignore
Cargo.lock subprojects: update proc-macro2 and syn 2025-08-27 10:57:04 +02:00
Cargo.toml meson, cargo: require Rust 1.83.0 2025-09-17 19:00:56 +02:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build rust: move rust.bindgen to qemu-api crate 2025-06-20 13:24:42 +02:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00