> Add derive macro for declaring qdev properties directly above the field > definitions. To do this, we split DeviceImpl::properties method on a > separate trait so we can implement only that part in the derive macro > expansion (we cannot partially implement the DeviceImpl trait). > > Adding a `property` attribute above the field declaration will generate > a `qemu_api::bindings::Property` array member in the device's property > list. > > Signed-off-by: Manos Pitsidianakis <manos.pitsidiana...@linaro.org>
Applied to branch rust-next of https://gitlab.com/bonzini/qemu, thanks! > This patch depends on patches that haven't been merged yet to master And especially on bumping the minimum supported Rust version to 1.83, like the pending vmstate work which is sitting in the branch. I fixed the conflicts and rebased it on top of this patch. Paolo