Re: [PATCH 14/19] scripts/qapi: generate high-level Rust bindings

Paolo Bonzini <[email protected]>
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-devel
Message-ID <[email protected]>
On 1/7/26 10:06, Paolo Bonzini wrote:
>> The argument name @c_type suggests it is a C type, but this map contains
>> a mix of C types, QAPI built-in types, and even a user-defined QAPI type
>> (String).  How come?
>>
>> Why do we even have to map from C type to Rust type?  Why can't we map
>> from QAPI type to Rust type, like we map from QAPI type to C type?
> 
> I'll look into it.

Ok, the reason for this is to have a single "def rs_type()" function 
instead of multiple methods ("def rs_type(self)" and "def 
rs_boxed_type(self)" on each of the schema types).

I'll change this to use methods.

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.