1d0f0cd5bSPaolo Bonziniproject('bilge-impl-0.2-rs', 'rust',
2*700784bfSPaolo Bonzini  meson_version: '>=1.5.0',
3d0f0cd5bSPaolo Bonzini  version: '0.2.0',
4d0f0cd5bSPaolo Bonzini  license: 'MIT OR Apache-2.0',
5d0f0cd5bSPaolo Bonzini  default_options: [])
6d0f0cd5bSPaolo Bonzini
7d0f0cd5bSPaolo Bonzinisubproject('itertools-0.11-rs', required: true)
8d0f0cd5bSPaolo Bonzinisubproject('proc-macro-error-attr-1-rs', required: true)
9d0f0cd5bSPaolo Bonzinisubproject('proc-macro-error-1-rs', required: true)
10d0f0cd5bSPaolo Bonzinisubproject('quote-1-rs', required: true)
11d0f0cd5bSPaolo Bonzinisubproject('syn-2-rs', required: true)
12d0f0cd5bSPaolo Bonzinisubproject('proc-macro2-1-rs', required: true)
13d0f0cd5bSPaolo Bonzini
14d0f0cd5bSPaolo Bonziniitertools_dep = dependency('itertools-0.11-rs', native: true)
15d0f0cd5bSPaolo Bonziniproc_macro_error_attr_dep = dependency('proc-macro-error-attr-1-rs', native: true)
16d0f0cd5bSPaolo Bonziniproc_macro_error_dep = dependency('proc-macro-error-1-rs', native: true)
17d0f0cd5bSPaolo Bonziniquote_dep = dependency('quote-1-rs', native: true)
18d0f0cd5bSPaolo Bonzinisyn_dep = dependency('syn-2-rs', native: true)
19d0f0cd5bSPaolo Bonziniproc_macro2_dep = dependency('proc-macro2-1-rs', native: true)
20d0f0cd5bSPaolo Bonzini
21d0f0cd5bSPaolo Bonzinirust = import('rust')
22d0f0cd5bSPaolo Bonzini
23d0f0cd5bSPaolo Bonzini_bilge_impl_rs = rust.proc_macro(
24d0f0cd5bSPaolo Bonzini  'bilge_impl',
25d0f0cd5bSPaolo Bonzini  files('src/lib.rs'),
26d0f0cd5bSPaolo Bonzini  override_options: ['rust_std=2021', 'build.rust_std=2021'],
27d0f0cd5bSPaolo Bonzini  rust_args: [
28d0f0cd5bSPaolo Bonzini    '--cfg', 'use_fallback',
29d0f0cd5bSPaolo Bonzini    '--cfg', 'feature="syn-error"',
30d0f0cd5bSPaolo Bonzini    '--cfg', 'feature="proc-macro"',
31d0f0cd5bSPaolo Bonzini  ],
32d0f0cd5bSPaolo Bonzini  dependencies: [
33d0f0cd5bSPaolo Bonzini    itertools_dep,
34d0f0cd5bSPaolo Bonzini    proc_macro_error_attr_dep,
35d0f0cd5bSPaolo Bonzini    proc_macro_error_dep,
36d0f0cd5bSPaolo Bonzini    quote_dep,
37d0f0cd5bSPaolo Bonzini    syn_dep,
38d0f0cd5bSPaolo Bonzini    proc_macro2_dep,
39d0f0cd5bSPaolo Bonzini  ],
40d0f0cd5bSPaolo Bonzini)
41d0f0cd5bSPaolo Bonzini
42d0f0cd5bSPaolo Bonzinibilge_impl_dep = declare_dependency(
43d0f0cd5bSPaolo Bonzini  link_with: _bilge_impl_rs,
44d0f0cd5bSPaolo Bonzini)
45d0f0cd5bSPaolo Bonzini
46d0f0cd5bSPaolo Bonzinimeson.override_dependency('bilge-impl-0.2-rs', bilge_impl_dep)
47