On Fri, Jun 13, 2025 at 03:02:49PM +0200, Paolo Bonzini wrote: > Date: Fri, 13 Jun 2025 15:02:49 +0200 > From: Paolo Bonzini <[email protected]> > Subject: [PATCH 2/2] rust: move rust.bindgen to qemu-api crate > X-Mailer: git-send-email 2.49.0 > > Once qemu-api is split in multiple crates, each of which will have > its own invocation of bindgen. There cannot be only one, because > there are occasional "impl" blocks for the bindgen-generated > structs (e.g. VMStateFlags or QOM classes) that have to > reside in the same crate as the bindgen-generated code. > > For now, prepare for this new organization by invoking bindgen > within the qemu-api crate's build definitions. > > Signed-off-by: Paolo Bonzini <[email protected]> > --- > meson.build | 41 ----------------------------------- > rust/{ => qemu-api}/wrapper.h | 0 > rust/meson.build | 4 +++- > rust/qemu-api/meson.build | 41 +++++++++++++++++++++++++++++++++++ > 4 files changed, 44 insertions(+), 42 deletions(-) > rename rust/{ => qemu-api}/wrapper.h (100%)
Reviewed-by: Zhao Liu <[email protected]>
