1project('proc-macro-error-attr-1-rs', 'rust', 2 meson_version: '>=1.5.0', 3 version: '1.12.0', 4 license: 'MIT OR Apache-2.0', 5 default_options: []) 6 7subproject('proc-macro2-1-rs', required: true) 8subproject('quote-1-rs', required: true) 9 10proc_macro2_dep = dependency('proc-macro2-1-rs', native: true) 11quote_dep = dependency('quote-1-rs', native: true) 12 13rust = import('rust') 14_proc_macro_error_attr_rs = rust.proc_macro( 15 'proc_macro_error_attr', 16 files('src/lib.rs'), 17 override_options: ['rust_std=2018', 'build.rust_std=2018'], 18 rust_args: [ 19 '--cfg', 'use_fallback', 20 '--cfg', 'feature="syn-error"', 21 '--cfg', 'feature="proc-macro"' 22 ], 23 dependencies: [ 24 proc_macro2_dep, 25 quote_dep, 26 ], 27) 28 29proc_macro_error_attr_dep = declare_dependency( 30 link_with: _proc_macro_error_attr_rs, 31) 32 33meson.override_dependency('proc-macro-error-attr-1-rs', proc_macro_error_attr_dep, native: true) 34