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