qemu/rust
Paolo Bonzini 8d394f6cf0 rust: qom: make ParentInit lifetime-invariant
This is the trick that allows the parent-field initializer to be used
only for the object that it's meant to be initialized.  This way,
the owner of a MemoryRegion must be the object that embeds it.

More information is in the comments; it's best explained with a simplified
example.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-17 09:54:52 +02:00
..
bits rust: add "bits", a custom bitflags implementation 2025-06-03 22:44:40 +02:00
hw rust: hpet: fully initialize object during instance_init 2025-06-17 09:54:51 +02:00
qemu-api rust: qom: make ParentInit lifetime-invariant 2025-06-17 09:54:52 +02:00
qemu-api-macros rust: make TryFrom macro more resilient 2025-06-06 14:32:54 +02:00
.gitignore rust: add bindgen step as a meson dependency 2024-10-11 12:32:17 +02:00
Cargo.lock rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Cargo.toml rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build subprojects: add the foreign crate 2025-06-05 20:24:51 +02:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
wrapper.h util/error: expose Error definition to Rust code 2025-06-05 20:24:51 +02:00