You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/rust/qemu-api
Bernhard Beschow ab81002252 rust/qemu-api: Add initial logging support based on C API
A log_mask_ln!() macro is provided which expects similar arguments as the
C version. However, the formatting works as one would expect from Rust.

To maximize code reuse the macro is just a thin wrapper around
qemu_log(). Also, just the bare minimum of logging masks is provided
which should suffice for the current use case of Rust in QEMU.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Link: https://lore.kernel.org/r/20250615112037.11992-2-shentey@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 week ago
..
src rust/qemu-api: Add initial logging support based on C API 1 week ago
tests rust: Fix Zhao's email address 1 month ago
.gitignore rust: allow using build-root bindings.rs from cargo 7 months ago
Cargo.toml rust: qemu-api: add bindings to Error 3 weeks ago
README.md rust: build: add "make clippy", "make rustfmt", "make rustdoc" 7 months ago
build.rs rust: move rust.bindgen to qemu-api crate 1 week ago
meson.build rust/qemu-api: Add initial logging support based on C API 1 week ago
wrapper.h rust/qemu-api: Add initial logging support based on C API 1 week ago

README.md

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:

$ make bindings.inc.rs

Generate Rust documentation

Common Cargo tasks can be performed from the QEMU build directory

$ make clippy
$ make rustfmt
$ make rustdoc