| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
Older versions of bindgen rendered C++ doc comments as Rust doc comments
using the /// syntax. Newer versions use the doc attribute instead.
This patch re-generates the src/ffi.rs file with bindgen 0.55.1 so that
it uses the new format. This makes it easier to perform changes in the
future.
|
|
|
|
|
|
|
|
| |
While bindgen is able to replace the C uint types with the correct Rust
types, it still generates typedefs for __uint{8,16,32,64}_t [0]. We
don’t need these typedefs, so we add a patch to remove them.
[0] https://github.com/rust-lang/rust-bindgen/issues/1663
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
nitrokey-sys currently contains two deprecated functions: `NK_status`
and `NK_totp_get_time`. This patch adds Rust’s `deprecated` attribute
to the functions.
|
|
|
|
|
| |
This patch updates libnitrokey from version 3.4.1 to version 3.5 and
lists all API changes in the changelog.
|
|
|
|
|
|
| |
Besides the changes listed in the changelog, this patch also changes the
build system to be able to generate the version.cc file containing the
library version.
|
|
Use bindgen to generate the bindings statically instead of during build.
Code generation is not necessary as NK_C_API.h does not contain any
system-dependent definitions. Removing bindgen as a build dependency
also drastically speeds up compilation.
|