mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
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:
parent
c596199f63
commit
28d0ad3d42
3 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue