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-12 11:52:23 +01:00
|
|
|
$ ninja bindings.inc.rs
|
2024-10-03 16:28:49 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Generate Rust documentation
|
|
|
|
|
|
|
|
|
|
To generate docs for this crate, including private items:
|
|
|
|
|
|
|
|
|
|
```sh
|
2024-11-12 11:52:23 +01:00
|
|
|
pyvenv/bin/meson devenv -w ../rust cargo doc --no-deps --document-private-items
|
2024-10-03 16:28:49 +03:00
|
|
|
```
|