bindings: rust: update bindgen's version
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 14 Feb 2023 06:45:35 +0000 (12:15 +0530)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 14 Feb 2023 08:43:34 +0000 (09:43 +0100)
commit739eaee1280be84f10ef69e9e775de994069e38b
treeef8a2b2866449597aba1c1f65be143c5683eb986
parentf9a68e4e701b23925dbfa73327dfa09e95c3b541
bindings: rust: update bindgen's version

The currently selected version of bindgen has a unmaintained dependency
and generates the following build warning while building vhost-device
crate:

Crate:     ansi_term
Version:   0.12.1
Warning:   unmaintained
Title:     ansi_term is Unmaintained
Date:      2021-08-18
ID:        RUSTSEC-2021-0139
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0139
Dependency tree:
ansi_term 0.12.1
└── clap 2.34.0
    └── bindgen 0.59.2
        └── libgpiod-sys 0.1.0
            └── libgpiod 0.1.0
                └── vhost-device-gpio 0.1.0

error: 1 denied warning found!

Fix it by moving to a later version of bindgen, which updates the types
of few of the arguments to the FFI helpers and so required changes to
few of explicit type conversions.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/rust/gpiosim-sys/Cargo.toml
bindings/rust/libgpiod-sys/Cargo.toml
bindings/rust/libgpiod/src/event_buffer.rs
bindings/rust/libgpiod/src/line_config.rs
bindings/rust/libgpiod/src/line_request.rs
bindings/rust/libgpiod/src/request_config.rs