Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

20 lines
806 B
Meson

_common_cfg = run_command(rustc_args,
'--config-headers', config_host_h, files('Cargo.toml'),
capture: true, check: true).stdout().strip().splitlines()
_common_rs = cargo_ws.package('common').library(rust_args: _common_cfg)
cargo_ws.package('common').override_dependency(declare_dependency(link_with: _common_rs))
common_rs = declare_dependency(link_with: [_common_rs])
rust.test('rust-common-tests', _common_rs,
suite: ['unit', 'rust'])
# Doctests are essentially integration tests, so they need the same dependencies.
# Note that running them requires the object files for C code, so place them
# in a separate suite that is run by the "build" CI jobs rather than "check".
rust.doctest('rust-common-doctests',
_common_rs,
dependencies: common_rs,
suite: ['doc', 'rust'])