aboutsummaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAge
* Do not include layout tests in generated bindingsRobin Krahl2020-09-22
| | | | | | | | | | | | 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.
* Automatically refresh patchesRobin Krahl2020-09-20
| | | | | This patch adds the --refresh option to the quilt push invocation in the Makefile to automatically update the patches if the context changed.
* Derive Default for libnitrokey structsRobin Krahl2020-09-20
| | | | | | | | This patch adds the --with-derive-default option to the bindgen invocation so that it derives Default implementations for all libnitrokey structs. This allows us to simplify code in nitrokey-rs, for example the initialization of structs that are used in nitrokey-sys functions with output parameters.
* Use quilt to manage modifications in src/ffi.rsRobin Krahl2020-09-20
| | | | | | Previously, we manually modified the src/ffi.rs file to add deprecation attributes. With this patch, we use quilt to automatically apply patches with the changes.
* Add Makefile for generating src/ffi.rsRobin Krahl2020-09-20
This patch adds a Makefile to make it easier to generate the src/ffi.rs file using bindgen. As we can use whitelists instead of manually removing the unnecessary type definitions, we also re-generate the file with the new settings.