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