rust: allow older version of bindgen
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Oct 2024 13:00:41 +0000 (15:00 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Nov 2024 16:11:24 +0000 (17:11 +0100)
commitc2988dfbb0ecd30496625f8fb1afc52a74304259
tree52df87b61c6e14d53f32019a8ae82b8b4306c413
parentce4a144cf817d401592918faa86f4903d3c78c3e
rust: allow older version of bindgen

Cope with the old version that is provided in Debian 12.

--size_t-is-usize is needed on bindgen <0.61.0, and it was removed in
bindgen 0.65.0, so check for it in meson.build.

--merge-extern-blocks was added in 0.61.0.

--formatter rustfmt was added in 0.65.0 and is the default, so remove it.

Apart from Debian 12 and Ubuntu 22.04, all other supported distros have
version 0.66.x of bindgen or newer (or do not have bindgen at all).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/about/build-platforms.rst
meson.build