qemu/rust/qemu-api/src
Paolo Bonzini 9d116f42a3 rust: assertions: add static_assert
Add a new assertion that is similar to "const { assert!(...) }" but can be used
outside functions and with older versions of Rust.  A similar macro is found in
Linux, whereas the "static_assertions" crate has a const_assert macro that
produces worse error messages.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/r/20250321112523.1774131-2-peter.maydell@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-03-21 12:51:16 +01:00
..
assertions.rs rust: assertions: add static_assert 2025-03-21 12:51:16 +01:00
bindings.rs rust: bindings: remove more unnecessary Send/Sync impls 2025-03-06 12:44:47 +01:00
bitops.rs rust: add a bit operation module 2024-12-10 18:49:26 +01:00
c_str.rs rust: qemu_api: add a documentation header for all modules 2025-02-13 12:51:34 +01:00
callbacks.rs rust: callbacks: allow passing optional callbacks as () 2025-02-13 12:19:33 +01:00
cell.rs rust: cell: add full example of declaring a SysBusDevice 2025-03-06 12:44:47 +01:00
chardev.rs rust: chardev: provide basic bindings to character devices 2025-03-06 12:44:47 +01:00
errno.rs rust: add module to convert between success/-errno and io::Result 2025-02-25 16:18:08 +01:00
irq.rs rust: irq: wrap IRQState with Opaque<> 2025-03-06 12:44:46 +01:00
lib.rs rust: add module to convert between success/-errno and io::Result 2025-02-25 16:18:08 +01:00
memory.rs rust: qom: remove operations on &mut 2025-03-06 12:44:47 +01:00
module.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
offset_of.rs rust: qemu_api: add a documentation header for all modules 2025-02-13 12:51:34 +01:00
prelude.rs rust: qom: remove operations on &mut 2025-03-06 12:44:47 +01:00
qdev.rs rust: chardev: wrap Chardev with Opaque<> 2025-03-06 12:44:47 +01:00
qom.rs rust: qom: remove operations on &mut 2025-03-06 12:44:47 +01:00
sysbus.rs rust: sysbus: wrap SysBusDevice with Opaque<> 2025-03-06 12:44:47 +01:00
timer.rs rust: timer: wrap QEMUTimer with Opaque<> and express pinning requirements 2025-03-06 12:44:46 +01:00
vmstate.rs rust: qdev: wrap Clock and DeviceState with Opaque<> 2025-03-06 12:44:47 +01:00
zeroable.rs rust: chardev: provide basic bindings to character devices 2025-03-06 12:44:47 +01:00