Finally, automatic parsing of Cargo.toml is also possible for QEMU's own crates, not just for subprojects. This removes the need to list the dependencies and language editions in both Cargo.toml and meson.build files. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
12 lines
377 B
Meson
12 lines
377 B
Meson
_bits_rs = cargo_ws.package('bits').library()
|
|
cargo_ws.package('bits').override_dependency(declare_dependency(link_with: _bits_rs))
|
|
|
|
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'])
|