qemu/rust/qemu-api
Paolo Bonzini 90868c3dce rust: cargo: store desired warning levels in workspace Cargo.toml
An extra benefit of workspaces is that they allow to place lint level
settings in a single Cargo.toml; the settings are then inherited by
packages in the workspace.

Correspondingly, teach rustc_args.py to get the unexpected_cfgs
configuration from the workspace Cargo.toml.

Note that it is still possible to allow or deny warnings per crate or
module, via the #![] attribute syntax.  The rust/qemu-api/src/bindings.rs
file is an example.

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: cargo: store desired warning levels in workspace Cargo.toml 2024-12-10 18:44:06 +01:00
meson.build rust: cargo: store desired warning levels in workspace 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