Am 5. April 2025 10:06:00 UTC schrieb Paolo Bonzini <pbonz...@redhat.com>:
>Meson 1.7.0 and 1.8.0 include improved support for Rust, namely:
>* support for "objects" in Rust executables
>* support for doctest targets

Using Meson 1.7.2 (shipped with my distro) I didn't succeed with either of 
these. If just applying the first patch with --enable-modules I get linker 
errors again. With all patches applied, "doctest" isn't recognized. Is this 
perhaps 1.8-only material?

Best regards,
Bernhard

>
>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(-)
>

Reply via email to