qemu/rust/qemu-api
Paolo Bonzini f620cadc0c rust: add qemu-api doctests to "meson test"
Doctests are weird.  They are essentially integration tests, but they're
"ran" by executing rustdoc --test, which takes a compiler-ish
command line.  This is supported by Meson 1.8.0.

Because they run the linker and need all the .o files, run them in the
build jobs rather than the test jobs.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-03 22:42:18 +02:00
..
src rust: bindings: allow ptr_offset_with_cast 2025-06-03 22:42:18 +02:00
tests rust: Fix Zhao's email address 2025-05-26 18:04:27 +02:00
.gitignore rust: allow using build-root bindings.rs from cargo 2024-12-10 18:44:06 +01:00
build.rs rust: clippy: enable uninlined_format_args lint 2025-05-06 16:02:04 +02:00
Cargo.toml rust: remove offset_of replacement 2025-05-06 16:02:04 +02:00
meson.build rust: add qemu-api doctests to "meson test" 2025-06-03 22:42:18 +02:00
README.md rust: build: add "make clippy", "make rustfmt", "make rustdoc" 2024-12-10 18:44:06 +01:00

QEMU bindings and API wrappers

This library exports helper Rust types, Rust macros and C FFI bindings for internal QEMU APIs.

The C bindings can be generated with bindgen, using this build target:

$ make bindings.inc.rs

Generate Rust documentation

Common Cargo tasks can be performed from the QEMU build directory

$ make clippy
$ make rustfmt
$ make rustdoc