qemu/rust/qemu-api-macros
Paolo Bonzini 20f0b8e98b rust: macros: check that #[derive(Object)] requires #[repr(C)]
Convert derive_object to the same pattern of first making a
Result<proc_macro2::TokenStream, CompileError>, and then doing
.unwrap_or_else(Into::into) to support checking the validity of
the input.  Add is_c_repr to check that all QOM structs include
a #[repr(C)] attribute.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-10 23:34:43 +01:00
..
src rust: macros: check that #[derive(Object)] requires #[repr(C)] 2025-01-10 23:34:43 +01:00
Cargo.toml rust: cargo: store desired warning levels in workspace Cargo.toml 2024-12-10 18:44:06 +01:00
meson.build rust: qemu-api-macros: always process subprojects before dependencies 2024-11-09 08:34:07 +01:00
README.md rust: add utility procedural macro crate 2024-10-11 12:32:17 +02:00

qemu-api-macros - Utility macros for defining QEMU devices