mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
rust: re-export qemu macros from common/qom/hwcore
This is just a bit nicer. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20250827104147.717203-22-marcandre.lureau@redhat.com Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
b0f6bf8a5b
commit
e4444d71e8
@@ -16,7 +16,6 @@ rust-version.workspace = true
|
||||
common = { path = "../common" }
|
||||
qom = { path = "../qom" }
|
||||
util = { path = "../util" }
|
||||
qemu_macros = { path = "../qemu-macros" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -39,4 +39,4 @@ _system_rs = static_library(
|
||||
)
|
||||
|
||||
system_rs = declare_dependency(link_with: [_system_rs],
|
||||
dependencies: [qemu_macros, hwcore])
|
||||
dependencies: [hwcore])
|
||||
|
||||
@@ -129,7 +129,7 @@ impl<T> Default for MemoryRegionOpsBuilder<T> {
|
||||
|
||||
/// A safe wrapper around [`bindings::MemoryRegion`].
|
||||
#[repr(transparent)]
|
||||
#[derive(qemu_macros::Wrapper)]
|
||||
#[derive(common::Wrapper)]
|
||||
pub struct MemoryRegion(Opaque<bindings::MemoryRegion>);
|
||||
|
||||
unsafe impl Send for MemoryRegion {}
|
||||
|
||||
Reference in New Issue
Block a user