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