Re: [PATCH 00/19] rust: QObject and QAPI bindings

Paolo Bonzini <[email protected]>
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-devel
Message-ID <[email protected]>
On 12/10/25 15:50, Markus Armbruster wrote:
>> Let us know what you'd prefer and we'll switch.  Alternatively,
>> retconning -B's meaning so that it applies to Rust will work too. :)
> 
> Any particular reason *not* to generate Rust unconditionally along with
> C?

Two reasons I can think of:

1) the exact layout is still in flux (not modular, no commands or events).

2) Rust prefers to have all files under a common path ("mod xyz" directs 
the compiler to look at xyz.rs or xyz/mod.rs), which doesn't work well 
if they are created in qapi/meson.build.  There's plenty of workarounds, 
but I'd rather not pick one until the layout is fixed.

So maybe for now we can use -B and not pollute qapi/meson.build, and 
when the generator is more complete we can move Rust generation there?

Paolo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.