From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-rust@nongnu.org
Subject: [PATCH 0/6] rust: update build system for Meson 1.8.1
Date: Tue, 27 May 2025 19:03:58 +0200 [thread overview]
Message-ID: <20250527170404.1580482-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
* invoking clippy and rustdoc
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).
Note that this does *not* yet require 1.8.1 for all of QEMU; the
requirement is only there if Rust is enabled.
Paolo
Supersedes: <20250405100603.253421-1-pbonzini@redhat.com>
Paolo Bonzini (6):
meson: update to version 1.8.1
rust: use "objects" for Rust executables as well
build, dockerfiles: add support for detecting rustdoc
rust: add qemu-api doctests to "meson test"
rust: cell: remove support for running doctests with "cargo test
--doc"
rust: use native Meson support for clippy and rustdoc
docs/devel/rust.rst | 12 ++++---
configure | 16 +++++++++
meson.build | 4 ++-
.gitlab-ci.d/buildtest-template.yml | 3 +-
.gitlab-ci.d/buildtest.yml | 11 ++-----
rust/clippy.toml => clippy.toml | 0
python/scripts/vendor.py | 4 +--
python/wheels/meson-1.5.0-py3-none-any.whl | Bin 959846 -> 0 bytes
python/wheels/meson-1.8.1-py3-none-any.whl | Bin 0 -> 1013001 bytes
pythondeps.toml | 2 +-
rust/Cargo.toml | 1 -
rust/meson.build | 14 ++------
rust/qemu-api/meson.build | 31 +++++++-----------
rust/qemu-api/src/cell.rs | 22 +++++--------
scripts/rust/rustc_args.py | 5 +--
.../dockerfiles/fedora-rust-nightly.docker | 2 ++
tests/docker/dockerfiles/ubuntu2204.docker | 1 +
tests/lcitool/mappings.yml | 6 +++-
tests/lcitool/refresh | 3 ++
19 files changed, 69 insertions(+), 68 deletions(-)
rename rust/clippy.toml => clippy.toml (100%)
delete mode 100644 python/wheels/meson-1.5.0-py3-none-any.whl
create mode 100644 python/wheels/meson-1.8.1-py3-none-any.whl
--
2.49.0
next reply other threads:[~2025-05-27 17:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 17:03 Paolo Bonzini [this message]
2025-05-27 17:03 ` [PATCH 1/6] meson: update to version 1.8.1 Paolo Bonzini
2025-05-27 17:04 ` [PATCH 2/6] rust: use "objects" for Rust executables as well Paolo Bonzini
2025-05-27 17:04 ` [PATCH 3/6] build, dockerfiles: add support for detecting rustdoc Paolo Bonzini
2025-05-27 17:04 ` [PATCH 4/6] rust: add qemu-api doctests to "meson test" Paolo Bonzini
2025-05-27 17:04 ` [PATCH 5/6] rust: cell: remove support for running doctests with "cargo test --doc" Paolo Bonzini
2025-05-27 17:04 ` [PATCH 6/6] rust: use native Meson support for clippy and rustdoc 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=20250527170404.1580482-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).