qemu/rust
Paolo Bonzini bc2a48d647 rust: make TryFrom macro more resilient
If the enum includes values such as "Ok", "Err", or "Error", the TryInto
macro can cause errors.  Be careful and qualify identifiers with the full
path, or in the case of TryFrom<>::Error do not use the associated type
at all.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-06 14:32:54 +02:00
..
bits rust: add "bits", a custom bitflags implementation 2025-06-03 22:44:40 +02:00
hw rust/hpet: Drop BqlCell wrapper for num_timers 2025-06-06 14:32:54 +02:00
qemu-api rust: qdev: support returning errors from realize 2025-06-06 14:32:53 +02:00
qemu-api-macros rust: make TryFrom macro more resilient 2025-06-06 14:32:54 +02:00
.gitignore rust: add bindgen step as a meson dependency 2024-10-11 12:32:17 +02:00
Cargo.lock rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Cargo.toml rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build subprojects: add the foreign crate 2025-06-05 20:24:51 +02:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
wrapper.h util/error: expose Error definition to Rust code 2025-06-05 20:24:51 +02:00