From: Zhao Liu <zhao1.liu@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, mkletzan@redhat.com,
marcandre.lureau@redhat.com, qemu-rust@nongnu.org
Subject: Re: [PATCH] rust: remove useless glib_sys bindings
Date: Mon, 20 Oct 2025 14:03:22 +0800 [thread overview]
Message-ID: <aPXQqvgNIdpBP58c@intel.com> (raw)
In-Reply-To: <20251016145619.1324585-1-pbonzini@redhat.com>
On Thu, Oct 16, 2025 at 04:56:19PM +0200, Paolo Bonzini wrote:
> Date: Thu, 16 Oct 2025 16:56:19 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH] rust: remove useless glib_sys bindings
> X-Mailer: git-send-email 2.51.0
>
> From: Martin Kletzander <mkletzan@redhat.com>
>
> The definition of types needed for g_autolist(), g_autoslist(),
> g_autoqueue() need the imports for GList, GSList and GQueue
> to appear everything. Rust code is never going to see those,
> since they are not used in structs. Block the types from
> appearing in the bindings.
>
> Co-authored-by: Martin Kletzander <mkletzan@redhat.com>
> Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> meson.build | 1 +
> rust/bql/src/bindings.rs | 2 +-
> rust/chardev/src/bindings.rs | 4 ++--
> rust/hw/char/pl011/src/bindings.rs | 2 +-
> rust/hw/core/src/bindings.rs | 2 +-
> rust/migration/src/bindings.rs | 2 +-
> rust/qom/src/bindings.rs | 2 +-
> rust/system/src/bindings.rs | 2 +-
> rust/util/src/bindings.rs | 2 +-
> 9 files changed, 10 insertions(+), 9 deletions(-)
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
prev parent reply other threads:[~2025-10-20 5:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 14:56 [PATCH] rust: remove useless glib_sys bindings Paolo Bonzini
2025-10-20 6:03 ` Zhao Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPXQqvgNIdpBP58c@intel.com \
--to=zhao1.liu@intel.com \
--cc=marcandre.lureau@redhat.com \
--cc=mkletzan@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-rust@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.