@@ -7,10 +7,8 @@ bilge_impl_dep = dependency('bilge-impl-0.2-rs')
_libpl011_rs = static_library(
'pl011',
files('src/lib.rs'),
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'c',
- rust_args: rust_args + [
- '--edition', '2021',
- ],
dependencies: [
bilge_dep,
bilge_impl_dep,
@@ -2,10 +2,8 @@ _lib_bindings_rs = static_library(
'_bindings_rs',
bindings_rs,
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
- rust_args: rust_args + [
- '--edition', '2021',
- ],
)
subdir('qemu-api')
@@ -2,9 +2,9 @@ _qemu_api_rs = static_library(
'qemu_api',
[files('src/lib.rs')],
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
rust_args: rust_args + [
- '--edition', '2021',
'--cfg', 'MESON_BINDINGS_RS',
],
link_with: [
Signed-off-by: Junjie Mao <junjie.mao@intel.com> --- rust/hw/char/pl011/meson.build | 4 +--- rust/meson.build | 4 +--- rust/qemu-api/meson.build | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) -- 2.30.2