master
build 18 lines 669 Bytes
Raw
1 _bql_cfg = []
2 if get_option('debug_mutex')
3 _bql_cfg += ['--cfg', 'feature="debug_cell"']
4 endif
5
6 _bql_rs = cargo_ws.package('bql').library(rust_args: _bql_cfg)
7 cargo_ws.package('bql').override_dependency(declare_dependency(link_with: _bql_rs))
8
9 bql_rs = declare_dependency(link_with: [_bql_rs],
10 dependencies: [qemuutil])
11
12 # Doctests are essentially integration tests, so they need the same dependencies.
13 # Note that running them requires the object files for C code, so place them
14 # in a separate suite that is run by the "build" CI jobs rather than "check".
15 rust.doctest('rust-bql-rs-doctests',
16 _bql_rs,
17 dependencies: bql_rs,
18 suite: ['doc', 'rust'])