rust: build: move rustc_args.py invocation to qemu-api crate
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Nov 2024 10:54:11 +0000 (11:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Dec 2024 17:44:06 +0000 (18:44 +0100)
commitf3a6e9bc475504152e45e5fbf86c756157438d08
treebf2b50dbc0737a3945e0a475eae106aa80f2e529
parentcb7ada5409f171dae364f206a7fe3ff30fcba7cb
rust: build: move rustc_args.py invocation to qemu-api crate

Only qemu-api needs access to the symbols in config-host.h.  Remove
the temptation to use them elsewhere by limiting the --cfg arguments to
the qemu-api crate.

Per-crate invocation of the script will also be needed to add --check-cfg
options for each crate's features (when more complex, build-time
configurable devices are added in the future).

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