1project('proc-macro2-1-rs', 'rust',
2  meson_version: '>=1.5.0',
3  version: '1.0.84',
4  license: 'MIT OR Apache-2.0',
5  default_options: [])
6
7subproject('unicode-ident-1-rs', required: true)
8
9unicode_ident_dep = dependency('unicode-ident-1-rs', native: true)
10
11_proc_macro2_rs = static_library(
12  'proc_macro2',
13  files('src/lib.rs'),
14  gnu_symbol_visibility: 'hidden',
15  override_options: ['rust_std=2021', 'build.rust_std=2021'],
16  rust_abi: 'rust',
17  rust_args: [
18    '--cfg', 'feature="proc-macro"',
19    '--cfg', 'no_literal_byte_character',
20    '--cfg', 'no_literal_c_string',
21    '--cfg', 'no_source_text',
22    '--cfg', 'wrap_proc_macro',
23  ],
24  dependencies: [
25    unicode_ident_dep,
26  ],
27  native: true,
28)
29
30proc_macro2_dep = declare_dependency(
31  link_with: _proc_macro2_rs,
32)
33
34meson.override_dependency('proc-macro2-1-rs', proc_macro2_dep, native: true)
35