rust: use "objects" for Rust executables as well

libqemuutil is not meant be linked as a whole; if modules are enabled, doing
so results in undefined symbols (corresponding to QMP commands) in
rust/qemu-api/rust-qemu-api-integration.

Support for "objects" in Rust executables is available in Meson 1.8.0; use it
to switching to the same dependencies that C targets use: link_with for
libqemuutil, and objects for everything else.

Reported-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2025-02-27 13:36:49 +01:00
parent 0074a47147
commit 4f04a4eaf0
3 changed files with 7 additions and 24 deletions

View file

@ -66,8 +66,6 @@ be run via ``meson test`` or ``make``::
make check-rust
Building Rust code with ``--enable-modules`` is not supported yet.
Supported tools
'''''''''''''''