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