qemu/rust/qemu-api
Paolo Bonzini 9f7d4520d6 rust: use std::os::raw instead of core::ffi
core::ffi::c_* types were introduced in Rust 1.64.0.  Use the older types
in std::os::raw, which are now aliases of the types in core::ffi.  There is
no need to compile QEMU as no_std, so this is acceptable as long as we support
a version of Debian with Rust 1.63.0.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-11-05 14:18:16 +01:00
..
src rust: use std::os::raw instead of core::ffi 2024-11-05 14:18:16 +01:00
tests rust: use std::os::raw instead of core::ffi 2024-11-05 14:18:16 +01:00
.gitignore rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
build.rs rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
Cargo.lock rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
Cargo.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
meson.build rust: add definitions for vmstate 2024-11-05 14:18:16 +01:00
README.md rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02: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:

$ ninja bindings.rs

Generate Rust documentation

To generate docs for this crate, including private items:

cargo doc --no-deps --document-private-items