Since "qemu_api" is no longer the unique crate to provide APIs. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20250827104147.717203-17-marcandre.lureau@redhat.com Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
16 lines
413 B
Meson
16 lines
413 B
Meson
_bits_rs = static_library(
|
|
'bits',
|
|
'src/lib.rs',
|
|
override_options: ['rust_std=2021', 'build.rust_std=2021'],
|
|
rust_abi: 'rust',
|
|
dependencies: [qemu_macros],
|
|
)
|
|
|
|
bits_rs = declare_dependency(link_with: _bits_rs)
|
|
|
|
rust.test('rust-bits-tests', _bits_rs,
|
|
suite: ['unit', 'rust'])
|
|
|
|
rust.doctest('rust-bits-doctests', _bits_rs,
|
|
dependencies: bits_rs,
|
|
suite: ['doc', 'rust'])
|