1project('proc-macro-error-1-rs', 'rust',
2  meson_version: '>=1.5.0',
3  version: '1.0.4',
4  license: 'MIT OR Apache-2.0',
5  default_options: [])
6
7subproject('proc-macro-error-attr-1-rs', required: true)
8subproject('quote-1-rs', required: true)
9subproject('syn-2-rs', required: true)
10subproject('proc-macro2-1-rs', required: true)
11
12proc_macro_error_attr_dep = dependency('proc-macro-error-attr-1-rs', native: true)
13proc_macro2_dep = dependency('proc-macro2-1-rs', native: true)
14quote_dep = dependency('quote-1-rs', native: true)
15syn_dep = dependency('syn-2-rs', native: true)
16
17_proc_macro_error_rs = static_library(
18  'proc_macro_error',
19  files('src/lib.rs'),
20  override_options: ['rust_std=2018', 'build.rust_std=2018'],
21  rust_abi: 'rust',
22  rust_args: [
23    '--cfg', 'use_fallback',
24    '--cfg', 'feature="syn-error"',
25    '--cfg', 'feature="proc-macro"',
26    '-A', 'non_fmt_panics'
27  ],
28  dependencies: [
29    proc_macro_error_attr_dep,
30    proc_macro2_dep,
31    quote_dep,
32    syn_dep,
33  ],
34  native: true,
35)
36
37proc_macro_error_dep = declare_dependency(
38  link_with: _proc_macro_error_rs,
39)
40
41meson.override_dependency('proc-macro-error-1-rs', proc_macro_error_dep, native: true)
42