1project('either-1-rs', 'rust',
2  meson_version: '>=1.5.0',
3  version: '1.12.0',
4  license: 'MIT OR Apache-2.0',
5  default_options: [])
6
7_either_rs = static_library(
8  'either',
9  files('src/lib.rs'),
10  gnu_symbol_visibility: 'hidden',
11  override_options: ['rust_std=2018', 'build.rust_std=2018'],
12  rust_abi: 'rust',
13  rust_args: [
14    '--cfg', 'feature="use_std"',
15    '--cfg', 'feature="use_alloc"',
16  ],
17  dependencies: [],
18  native: true,
19)
20
21either_dep = declare_dependency(
22  link_with: _either_rs,
23)
24
25meson.override_dependency('either-1-rs', either_dep, native: true)
26