diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-11 12:18:06 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-10 23:34:43 +0100 |
commit | 7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e (patch) | |
tree | c95e80c41e4eb93b73f17236a9d1022008476e50 /rust/qemu-api/meson.build | |
parent | ca0d60a6ad777ab617cbc4e6f328eaff60617b3f (diff) | |
download | qemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.zip qemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.tar.gz qemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.tar.bz2 |
rust: add a utility module for compile-time type checks
It is relatively common in the low-level qemu_api code to assert that
a field of a struct has a specific type; for example, it can be used
to ensure that the fields match what the qemu_api and C code expects
for safety.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build index 9425ba7..60944a6 100644 --- a/rust/qemu-api/meson.build +++ b/rust/qemu-api/meson.build @@ -15,6 +15,7 @@ _qemu_api_rs = static_library( structured_sources( [ 'src/lib.rs', + 'src/assertions.rs', 'src/bindings.rs', 'src/bitops.rs', 'src/callbacks.rs', |