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 '--cfg', 'feature="extra-traits"', 28 ], 29 dependencies: [ 30 quote_dep, 31 proc_macro2_dep, 32 unicode_ident_dep, 33 ], 34 native: true, 35) 36 37syn_dep = declare_dependency( 38 link_with: _syn_rs, 39) 40 41meson.override_dependency('syn-2-rs', syn_dep, native: true) 42