15a5110d2SManos Pitsidianakis_qemu_api_rs = static_library( 25a5110d2SManos Pitsidianakis 'qemu_api', 35a5110d2SManos Pitsidianakis structured_sources( 45a5110d2SManos Pitsidianakis [ 55a5110d2SManos Pitsidianakis 'src/lib.rs', 65a5110d2SManos Pitsidianakis 'src/definitions.rs', 75a5110d2SManos Pitsidianakis 'src/device_class.rs', 85a5110d2SManos Pitsidianakis ], 95a5110d2SManos Pitsidianakis {'.' : bindings_rs}, 105a5110d2SManos Pitsidianakis ), 115a5110d2SManos Pitsidianakis override_options: ['rust_std=2021', 'build.rust_std=2021'], 125a5110d2SManos Pitsidianakis rust_abi: 'rust', 13*7b72c7ddSPaolo Bonzini rust_args: [ 145a5110d2SManos Pitsidianakis '--cfg', 'MESON', 155a5110d2SManos Pitsidianakis # '--cfg', 'feature="allocator"', 165a5110d2SManos Pitsidianakis ], 172b74dd91SManos Pitsidianakis dependencies: [ 182b74dd91SManos Pitsidianakis qemu_api_macros, 192b74dd91SManos Pitsidianakis ], 205a5110d2SManos Pitsidianakis) 215a5110d2SManos Pitsidianakis 225a5110d2SManos Pitsidianakisqemu_api = declare_dependency( 235a5110d2SManos Pitsidianakis link_with: _qemu_api_rs, 245a5110d2SManos Pitsidianakis) 25