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