diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-14 11:13:53 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-06 12:44:46 +0100 |
commit | f07a5674cf97b8473e5d06d7b1df9b51e97d553f (patch) | |
tree | 347e41799050dca47ddc510ff46d3a99cf0b5580 /rust/qemu-api/meson.build | |
parent | 0b9d05e3c98fe168f3502ccc422b9171467314fa (diff) | |
download | qemu-f07a5674cf97b8473e5d06d7b1df9b51e97d553f.zip qemu-f07a5674cf97b8473e5d06d7b1df9b51e97d553f.tar.gz qemu-f07a5674cf97b8473e5d06d7b1df9b51e97d553f.tar.bz2 |
rust: qemu_api_macros: add Wrapper derive macro
Add a derive macro that makes it easy to peel off all the layers of
specialness (UnsafeCell, MaybeUninit, etc.) and just get a pointer
to the wrapped type; and likewise add them back starting from a
*mut.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
-rw-r--r-- | rust/qemu-api/meson.build | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build index bcf1cf7..6e52c4b 100644 --- a/rust/qemu-api/meson.build +++ b/rust/qemu-api/meson.build @@ -42,16 +42,13 @@ _qemu_api_rs = static_library( override_options: ['rust_std=2021', 'build.rust_std=2021'], rust_abi: 'rust', rust_args: _qemu_api_cfg, - dependencies: libc_dep, + dependencies: [libc_dep, qemu_api_macros], ) rust.test('rust-qemu-api-tests', _qemu_api_rs, suite: ['unit', 'rust']) -qemu_api = declare_dependency( - link_with: _qemu_api_rs, - dependencies: qemu_api_macros, -) +qemu_api = declare_dependency(link_with: _qemu_api_rs) # Rust executables do not support objects, so add an intermediate step. rust_qemu_api_objs = static_library( |