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