qemu/rust/qemu-api
Paolo Bonzini 97ed1e9c8e rust: build: generate lint flags from Cargo.toml
Cargo.toml makes it possible to describe the desired lint level settings
in a nice format.  We can extend this to Meson-built crates, by teaching
rustc_args.py to fetch lint and --check-cfg arguments from Cargo.toml.
--check-cfg arguments come from the unexpected_cfgs lint as well as crate
features

Start with qemu-api, since it already has a [lints.rust] table and
an invocation of rustc_args.py.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-12-10 18:44:06 +01:00
..
src rust: allow using build-root bindings.rs from cargo 2024-12-10 18:44:06 +01:00
tests rust: do not use --generate-cstr 2024-11-05 14:18:17 +01:00
.gitignore rust: allow using build-root bindings.rs from cargo 2024-12-10 18:44:06 +01:00
build.rs rust: allow using build-root bindings.rs from cargo 2024-12-10 18:44:06 +01:00
Cargo.toml rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
meson.build rust: build: generate lint flags from Cargo.toml 2024-12-10 18:44:06 +01:00
README.md rust: allow using build-root bindings.rs from cargo 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:

$ ninja bindings.inc.rs

Generate Rust documentation

To generate docs for this crate, including private items:

pyvenv/bin/meson devenv -w ../rust cargo doc --no-deps --document-private-items