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