Re: [PATCH v2 01/11] rust: Build separate qemu_api_tools and qemu_api_system

2025-02-19 Thread Zhao Liu
> diff --git a/rust/qemu-api/Cargo.toml b/rust/qemu-api/Cargo.toml > index 57747bc934..bc0393add4 100644 > --- a/rust/qemu-api/Cargo.toml > +++ b/rust/qemu-api/Cargo.toml > @@ -25,6 +25,7 @@ version_check = "~0.9" > default = ["debug_cell"] > allocator = [] > debug_cell = [] > +system= [] With

[PATCH v2 01/11] rust: Build separate qemu_api_tools and qemu_api_system

2025-02-18 Thread Kevin Wolf
The existing qemu_api library can't be linked into tools because it contains a few bindings for things that only exist in the system emulator. This adds a new "system" feature to the qemu_api crate that enables the system emulator parts in it, and build the crate twice: qemu_api_tools is the core