qemu-cr16/rust
Paolo Bonzini 2a8a7bb8aa rust: qdev: const_refs_to_static
Now that const_refs_static can be assumed, convert the members of
the DeviceImpl trait from functions to constants.  This lets the
compiler know that they have a 'static lifetime, and removes the
need for the weird "Box::leak()".

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