1project('syn-2-rs', 'rust', 2 version: '2.0.66', 3 license: 'MIT OR Apache-2.0', 4 default_options: []) 5 6subproject('proc-macro2-1-rs', required: true) 7subproject('quote-1-rs', required: true) 8subproject('unicode-ident-1-rs', required: true) 9 10proc_macro2_dep = dependency('proc-macro2-1-rs', native: true) 11quote_dep = dependency('quote-1-rs', native: true) 12unicode_ident_dep = dependency('unicode-ident-1-rs', native: true) 13 14_syn_rs = static_library( 15 'syn', 16 files('src/lib.rs'), 17 gnu_symbol_visibility: 'hidden', 18 override_options: ['rust_std=2021', 'build.rust_std=2021'], 19 rust_abi: 'rust', 20 rust_args: [ 21 '--cfg', 'feature="full"', 22 '--cfg', 'feature="derive"', 23 '--cfg', 'feature="parsing"', 24 '--cfg', 'feature="printing"', 25 '--cfg', 'feature="clone-impls"', 26 '--cfg', 'feature="proc-macro"', 27 ], 28 dependencies: [ 29 quote_dep, 30 proc_macro2_dep, 31 unicode_ident_dep, 32 ], 33 native: true, 34) 35 36syn_dep = declare_dependency( 37 link_with: _syn_rs, 38) 39 40meson.override_dependency('syn-2-rs', syn_dep, native: true) 41