aboutsummaryrefslogtreecommitdiff
path: root/rust/bits/meson.build
blob: 2a41e138c54bfc8eca09eba4d888f6433030cb65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_bits_rs = static_library(
  'bits',
  'src/lib.rs',
  override_options: ['rust_std=2021', 'build.rust_std=2021'],
  rust_abi: 'rust',
  dependencies: [qemu_api_macros],
)

bits_rs = declare_dependency(link_with: _bits_rs)

rust.test('rust-bits-tests', _bits_rs,
          suite: ['unit', 'rust'])

rust.doctest('rust-bits-doctests', _bits_rs,
             dependencies: bits_rs,
             suite: ['doc', 'rust'])