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