1project(
2  'bilge-0.2-rs',
3  'rust',
4  meson_version: '>=1.5.0',
5  version : '0.2.0',
6  license : 'MIT or Apache-2.0',
7)
8
9subproject('arbitrary-int-1-rs', required: true)
10subproject('bilge-impl-0.2-rs', required: true)
11
12arbitrary_int_dep = dependency('arbitrary-int-1-rs')
13bilge_impl_dep = dependency('bilge-impl-0.2-rs')
14
15lib = static_library(
16  'bilge',
17  'src/lib.rs',
18  override_options : ['rust_std=2021', 'build.rust_std=2021'],
19  rust_abi : 'rust',
20  dependencies: [
21    arbitrary_int_dep,
22    bilge_impl_dep,
23  ],
24)
25
26bilge_dep = declare_dependency(
27  link_with : [lib],
28)
29
30meson.override_dependency('bilge-0.2-rs', bilge_dep)
31