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

This commit adds a re-implementation of hw/char/pl011.c in Rust. How to build: 1. Configure a QEMU build with: --enable-system --target-list=aarch64-softmmu --enable-rust 2. Launching a VM with qemu-system-aarch64 should use the Rust version of the pl011 device Co-authored-by: Junjie Mao <junjie.mao@intel.com> Co-authored-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Junjie Mao <junjie.mao@intel.com> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20241024-rust-round-2-v1-2-051e7a25b978@linaro.org
30 lines
689 B
Meson
30 lines
689 B
Meson
project('itertools-0.11-rs', 'rust',
|
|
version: '0.11.0',
|
|
license: 'MIT OR Apache-2.0',
|
|
default_options: [])
|
|
|
|
subproject('either-1-rs', required: true)
|
|
|
|
either_dep = dependency('either-1-rs', native: true)
|
|
|
|
_itertools_rs = static_library(
|
|
'itertools',
|
|
files('src/lib.rs'),
|
|
gnu_symbol_visibility: 'hidden',
|
|
override_options: ['rust_std=2018', 'build.rust_std=2018'],
|
|
rust_abi: 'rust',
|
|
rust_args: [
|
|
'--cfg', 'feature="use_std"',
|
|
'--cfg', 'feature="use_alloc"',
|
|
],
|
|
dependencies: [
|
|
either_dep,
|
|
],
|
|
native: true,
|
|
)
|
|
|
|
itertools_dep = declare_dependency(
|
|
link_with: _itertools_rs,
|
|
)
|
|
|
|
meson.override_dependency('itertools-0.11-rs', itertools_dep, native: true)
|