From 4932d2376cc03c64eb82972824be673cdc2e0741 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 22 Sep 2020 18:26:53 +0200 Subject: Do not include layout tests in generated bindings We are generating the Rust bindings in src/ffi.rs using bindgen once for all platforms on an amd64 machine. These bindings previously included layout tests. But these tests fail on some 32-bit architecture. See this discussion for more information: https://lists.sr.ht/~ireas/nitrokey-rs-dev/%3C20200919182408.GA1513%40ireas.org%3E With this patch, we remove the layout tests from the generated bindings. Instead, we will add the option to re-generate the bindings, including the layout tests, during the build in the next patch. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index af7fb18..8efd48c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Derive `Debug` for all structs generated by `bindgen`. - Implement `std::fmt::Display` instead of `std::string::ToString` for the `Version` enum in `build.rs`. +- Do not include layout tests in the generated bindings. - Update to libnitrokey 3.6, causing all following changes. - New constants: - `NK_device_model_NK_LIBREM` (`NK_device_model` enum) -- cgit v1.2.1