master
build 17 lines 681 Bytes
Raw
1 _util_rs = cargo_ws.package('util').library()
2 cargo_ws.package('util').override_dependency(declare_dependency(link_with: _util_rs))
3
4 util_rs = declare_dependency(link_with: [_util_rs], dependencies: [qemuutil, qom])
5
6 rust.test('rust-util-tests', _util_rs,
7 dependencies: [qemuutil, qom],
8 suite: ['unit', 'rust'])
9
10 # Doctests are essentially integration tests, so they need the same dependencies.
11 # Note that running them requires the object files for C code, so place them
12 # in a separate suite that is run by the "build" CI jobs rather than "check".
13 rust.doctest('rust-util-rs-doctests',
14 _util_rs,
15 dependencies: util_rs,
16 suite: ['doc', 'rust']
17 )