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