Paolo Bonzini <pbonz...@redhat.com> writes:
> Registering the object is now done by the #[derive(Object)] macro. The module_init! macro is still necessary when a device needs more logic (in addition to a single type registration) in module init. That is not rare among the devices in C we have today. Manos and I had a conversation on this. He mentioned that he had a second Rust device that needs this macro [1]. [1] https://lore.kernel.org/qemu-devel/itblf.by425lac...@linaro.org/ -- Best Regards Junjie Mao > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > rust/qemu-api/src/definitions.rs | 43 -------------------------------- > 1 file changed, 43 deletions(-)