qemu-cr16/rust
Paolo Bonzini dcdee1e718 rust: vmstate: use const_refs_to_static
The VMStateDescriptionBuilder already needs const_refs_static, so
use it to remove the need for vmstate_clock! and vmstate_struct!,
as well as to simplify the implementation for scalars.

If the consts in the VMState trait can reference to static
VMStateDescription, scalars do not need the info_enum_to_ref!
indirection and structs can implement the VMState trait themselves.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250908105005.2119297-9-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: use const_refs_to_static 2025-09-17 19:00:56 +02:00
qemu-api rust: vmstate: use const_refs_to_static 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