qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-rust@nongnu.org
Subject: [PATCH preview 0/3] rust: update build system for Meson 1.8.0
Date: Sat,  5 Apr 2025 12:06:00 +0200	[thread overview]
Message-ID: <20250405100603.253421-1-pbonzini@redhat.com> (raw)

Meson 1.7.0 and 1.8.0 include improved support for Rust, namely:
* support for "objects" in Rust executables
* support for doctest targets

Use it to remove BQL-related hacks, fix --enable-modules --enable-rust
and also simplify the Meson logic for building the qemu-api crate
(which may help splitting the crate, too).

Meson also supports clippy and rustdoc but there are some bugs in the
prerelease.  I'll try to get them fixed before 1.8.0.

Paolo

Paolo Bonzini (3):
  rust: use "objects" for Rust executables as well
  rust: add qemu-api doctests to "meson test"
  rust: cell: remove support for running doctests with "cargo test --doc"

 docs/devel/rust.rst        |  2 --
 .gitlab-ci.d/buildtest.yml |  5 -----
 rust/qemu-api/meson.build  | 35 +++++++++++++++--------------------
 rust/qemu-api/src/cell.rs  | 22 +++++++++-------------
 4 files changed, 24 insertions(+), 40 deletions(-)

-- 
2.49.0



             reply	other threads:[~2025-04-05 10:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-05 10:06 Paolo Bonzini [this message]
2025-04-05 10:06 ` [PATCH 1/3] rust: use "objects" for Rust executables as well Paolo Bonzini
2025-04-05 10:06 ` [PATCH 2/3] rust: add qemu-api doctests to "meson test" Paolo Bonzini
2025-04-05 10:06 ` [PATCH 3/3] rust: cell: remove support for running doctests with "cargo test --doc" Paolo Bonzini
2025-04-05 12:23 ` [PATCH 4/3] rust: use native Meson support for clippy and rustdoc Paolo Bonzini
2025-04-07  7:37 ` [PATCH preview 0/3] rust: update build system for Meson 1.8.0 Zhao Liu
2025-04-07  7:51   ` Paolo Bonzini
2025-04-08 20:34 ` Bernhard Beschow
2025-04-08 21:08   ` Paolo Bonzini

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=20250405100603.253421-1-pbonzini@redhat.com \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).