rust: define prelude

Add a module that will contain frequently used traits and
occasionally structs.  They can be included quickly with
"use qemu_api::prelude::*".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2024-12-05 13:42:33 +01:00
parent c596199f63
commit 28d0ad3d42
3 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,11 @@
#[rustfmt::skip]
pub mod bindings;
// preserve one-item-per-"use" syntax, it is clearer
// for prelude-like modules
#[rustfmt::skip]
pub mod prelude;
pub mod c_str;
pub mod cell;
pub mod definitions;