mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and provides some declaration macros for symbols visible to the rest of QEMU. Co-authored-by: Junjie Mao <junjie.mao@intel.com> Co-authored-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Junjie Mao <junjie.mao@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/r/0fb23fbe211761b263aacec03deaf85c0cc39995.1727961605.git.manos.pitsidianakis@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
17 lines
386 B
Markdown
17 lines
386 B
Markdown
# 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
|
|
$ ninja bindings.rs
|
|
```
|
|
|
|
## Generate Rust documentation
|
|
|
|
To generate docs for this crate, including private items:
|
|
|
|
```sh
|
|
cargo doc --no-deps --document-private-items
|
|
```
|