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