1project('bilge-impl-0.2-rs', 'rust', 2 version: '0.2.0', 3 license: 'MIT OR Apache-2.0', 4 default_options: []) 5 6subproject('itertools-0.11-rs', required: true) 7subproject('proc-macro-error-attr-1-rs', required: true) 8subproject('proc-macro-error-1-rs', required: true) 9subproject('quote-1-rs', required: true) 10subproject('syn-2-rs', required: true) 11subproject('proc-macro2-1-rs', required: true) 12 13itertools_dep = dependency('itertools-0.11-rs', native: true) 14proc_macro_error_attr_dep = dependency('proc-macro-error-attr-1-rs', native: true) 15proc_macro_error_dep = dependency('proc-macro-error-1-rs', native: true) 16quote_dep = dependency('quote-1-rs', native: true) 17syn_dep = dependency('syn-2-rs', native: true) 18proc_macro2_dep = dependency('proc-macro2-1-rs', native: true) 19 20rust = import('rust') 21 22_bilge_impl_rs = rust.proc_macro( 23 'bilge_impl', 24 files('src/lib.rs'), 25 override_options: ['rust_std=2021', 'build.rust_std=2021'], 26 rust_args: [ 27 '--cfg', 'use_fallback', 28 '--cfg', 'feature="syn-error"', 29 '--cfg', 'feature="proc-macro"', 30 ], 31 dependencies: [ 32 itertools_dep, 33 proc_macro_error_attr_dep, 34 proc_macro_error_dep, 35 quote_dep, 36 syn_dep, 37 proc_macro2_dep, 38 ], 39) 40 41bilge_impl_dep = declare_dependency( 42 link_with: _bilge_impl_rs, 43) 44 45meson.override_dependency('bilge-impl-0.2-rs', bilge_impl_dep) 46