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

2025-06-11 Thread Zhao Liu
On Thu, Jun 05, 2025 at 12:11:24PM +0200, Paolo Bonzini wrote: > Date: Thu, 5 Jun 2025 12:11:24 +0200 > From: Paolo Bonzini > Subject: [PATCH 3/3] scripts/qapi: generate high-level Rust bindings > X-Mailer: git-send-email 2.49.0 > > From: Marc-André Lureau > > Gener

[PATCH 3/3] scripts/qapi: generate high-level Rust bindings

2025-06-05 Thread Paolo Bonzini
From: Marc-André Lureau Generate high-level idiomatic Rust code for the QAPI types, with to/from translations for the C FFI. - char* is mapped to String, scalars to there corresponding Rust types - enums are simply aliased from FFI - has_foo/foo members are mapped to Option - lists are repres