rust: build: restrict --cfg generation to only required symbols
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Nov 2024 10:25:55 +0000 (11:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Dec 2024 17:44:06 +0000 (18:44 +0100)
commit1de82059aa097340d0ffde9140d338cddef478e5
tree80890bd6ce0eaf00b92c4842e050c75cb56602c1
parentf3a6e9bc475504152e45e5fbf86c756157438d08
rust: build: restrict --cfg generation to only required symbols

Parse the Cargo.toml file, looking for the unexpected_cfgs
configuration.  When generating --cfg options from the
config-host.h file, only use those that are included in the
configuration.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/meson.build
scripts/rust/rustc_args.py