| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
This patch adds the bindgen feature to the crate that allows users to
re-generate the bindings, including layout tests, during the build
instead of using the pre-generated bindings. Per default, this feature
is disabled.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This patch adds the --refresh option to the quilt push invocation in the
Makefile to automatically update the patches if the context changed.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
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.
|