Re: [PATCH 06/14] rust: add Deserialize implementation for QObject

Zhao Liu <[email protected]>
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-devel
Message-ID <[email protected]>
On Wed, Oct 01, 2025 at 10:00:43AM +0200, Paolo Bonzini wrote:
> Date: Wed,  1 Oct 2025 10:00:43 +0200
> From: Paolo Bonzini <[email protected]>
> Subject: [PATCH 06/14] rust: add Deserialize implementation for QObject
> X-Mailer: git-send-email 2.51.0
> 
> This allows QObject to be created from any serializable format, for
> example JSON via serde_json.
> 
> This is not too useful, since QObjects are produced by
> C code or by serializing structs, but it can be used for testing
> and it is part of the full implementation of a serde format.
> 
> Co-authored-by: Marc-André Lureau <[email protected]>
> Signed-off-by: Marc-André Lureau <[email protected]>
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  rust/util/meson.build                |   1 +
>  rust/util/src/qobject/deserialize.rs | 134 +++++++++++++++++++++++++++
>  rust/util/src/qobject/mod.rs         |   1 +
>  3 files changed, 136 insertions(+)
>  create mode 100644 rust/util/src/qobject/deserialize.rs

Reviewed-by: Zhao Liu <[email protected]>
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.