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