mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

Meson has support for invoking clippy and rustdoc on all crates (1.7.0 for clippy, 1.8.0 for rustdoc). Use it instead of the homegrown version; this requires disabling the multiple_crate_versions lint (the only one that was enabled from the "cargo" group)---which was not particularly useful anyway because all dependencies are converted by hand into Meson subprojects. rustfmt is still not supported. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
32 lines
945 B
Meson
32 lines
945 B
Meson
subproject('bilge-0.2-rs', required: true)
|
|
subproject('bilge-impl-0.2-rs', required: true)
|
|
subproject('libc-0.2-rs', required: true)
|
|
|
|
bilge_rs = dependency('bilge-0.2-rs')
|
|
bilge_impl_rs = dependency('bilge-impl-0.2-rs')
|
|
libc_rs = dependency('libc-0.2-rs')
|
|
|
|
subproject('proc-macro2-1-rs', required: true)
|
|
subproject('quote-1-rs', required: true)
|
|
subproject('syn-2-rs', required: true)
|
|
|
|
quote_rs_native = dependency('quote-1-rs', native: true)
|
|
syn_rs_native = dependency('syn-2-rs', native: true)
|
|
proc_macro2_rs_native = dependency('proc-macro2-1-rs', native: true)
|
|
|
|
qemuutil_rs = qemuutil.partial_dependency(link_args: true, links: true)
|
|
|
|
subdir('qemu-api-macros')
|
|
subdir('qemu-api')
|
|
|
|
subdir('hw')
|
|
|
|
cargo = find_program('cargo', required: false)
|
|
|
|
if cargo.found()
|
|
run_target('rustfmt',
|
|
command: [config_host['MESON'], 'devenv',
|
|
'--workdir', '@CURRENT_SOURCE_DIR@',
|
|
cargo, 'fmt'],
|
|
depends: bindings_rs)
|
|
endif
|