1subproject('proc-macro2-1-rs', required: true) 2subproject('quote-1-rs', required: true) 3subproject('syn-2-rs', required: true) 4 5quote_dep = dependency('quote-1-rs', native: true) 6syn_dep = dependency('syn-2-rs', native: true) 7proc_macro2_dep = dependency('proc-macro2-1-rs', native: true) 8 9_qemu_api_macros_rs = rust.proc_macro( 10 'qemu_api_macros', 11 files('src/lib.rs'), 12 override_options: ['rust_std=2021', 'build.rust_std=2021'], 13 rust_args: [ 14 '--cfg', 'use_fallback', 15 '--cfg', 'feature="syn-error"', 16 '--cfg', 'feature="proc-macro"', 17 ], 18 dependencies: [ 19 proc_macro2_dep, 20 quote_dep, 21 syn_dep, 22 ], 23) 24 25qemu_api_macros = declare_dependency( 26 link_with: _qemu_api_macros_rs, 27) 28