2024-10-03 16:28:49 +03: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:
|
|
|
|
|
|
|
|
|
|
```console
|
2024-11-13 09:11:48 +01:00
|
|
|
$ make bindings.inc.rs
|
2024-10-03 16:28:49 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Generate Rust documentation
|
|
|
|
|
|
2024-11-13 09:11:48 +01:00
|
|
|
Common Cargo tasks can be performed from the QEMU build directory
|
2024-10-03 16:28:49 +03:00
|
|
|
|
2024-11-13 09:11:48 +01:00
|
|
|
```console
|
|
|
|
|
$ make clippy
|
|
|
|
|
$ make rustfmt
|
|
|
|
|
$ make rustdoc
|
2024-10-03 16:28:49 +03:00
|
|
|
```
|