| 1 | _hwcore_rs = cargo_ws.package('hwcore').library() |
| 2 | cargo_ws.package('hwcore').override_dependency(declare_dependency(link_with: _hwcore_rs)) |
| 3 | |
| 4 | hwcore_rs = declare_dependency(link_with: [_hwcore_rs], |
| 5 | dependencies: [qom_rs, hwcore]) |
| 6 | |
| 7 | test('rust-hwcore-rs-integration', |
| 8 | executable( |
| 9 | 'rust-hwcore-rs-integration', |
| 10 | files('tests/tests.rs'), |
| 11 | override_options: ['rust_std=2021', 'build.rust_std=2021'], |
| 12 | rust_args: ['--test'], |
| 13 | install: false, |
| 14 | dependencies: [chardev_rs, common_rs, hwcore_rs, bql_rs, migration_rs, util_rs]), |
| 15 | args: [ |
| 16 | '--test', '--test-threads', '1', |
| 17 | '--format', 'pretty', |
| 18 | ], |
| 19 | protocol: 'rust', |
| 20 | suite: ['unit', 'rust']) |