> 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 this new feature, we also need to declear the this feature flag to pl011 & hpet's Cargo.toml: qemu_api = { path = "../../../qemu-api", features = ["system"] } > [lints] > workspace = true > diff --git a/rust/qemu-api/build.rs b/rust/qemu-api/build.rs > index 471e6c633d..b14f9d4e4a 100644 > --- a/rust/qemu-api/build.rs > +++ b/rust/qemu-api/build.rs > @@ -16,7 +16,13 @@ fn main() -> Result<()> { > let path = env::var("MESON_BUILD_ROOT") > .unwrap_or_else(|_| format!("{}/src", env!("CARGO_MANIFEST_DIR"))); > > - let file = format!("{}/bindings.inc.rs", path); > + let basename = if cfg!(feature = "system") { > + "bindings_system.inc.rs" > + } else { > + "bindings_tools.inc.rs" > + }; > + Missing to update rust/qemu-api/.gitignore :-) (I'm still learning your series and currently just trying out the compilation.) Thanks, Zhao