<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-sys-rs/Makefile, branch next</title>
<subtitle>low-level Rust bindings for libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-sys-rs/atom?h=next</id>
<link rel='self' href='https://git.ireas.org/nitrokey-sys-rs/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/'/>
<updated>2020-09-23T11:03:44Z</updated>
<entry>
<title>Add verify-bindings make target</title>
<updated>2020-09-23T11:03:44Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-23T10:52:46Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=6d5ca96e4f401b446b2e9490b6d24de5e639880c'/>
<id>urn:sha1:6d5ca96e4f401b446b2e9490b6d24de5e639880c</id>
<content type='text'>
This patch adds the verify-bindings make target that re-generates the
bindings using bindgen and verifies that they do not differ from the
pre-generated bindings in the Git repository.
</content>
</entry>
<entry>
<title>Add feature to generate bindings during build</title>
<updated>2020-09-22T17:09:40Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-22T17:09:40Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=c484777f3a7dde9e9fe8f47344fd8a6b30840b78'/>
<id>urn:sha1:c484777f3a7dde9e9fe8f47344fd8a6b30840b78</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Do not include layout tests in generated bindings</title>
<updated>2020-09-22T16:26:53Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-22T16:26:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=4932d2376cc03c64eb82972824be673cdc2e0741'/>
<id>urn:sha1:4932d2376cc03c64eb82972824be673cdc2e0741</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Automatically refresh patches</title>
<updated>2020-09-20T10:00:08Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-09-20T09:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=7944af959ca0b48f0e8ea5c506e801e07a6b8124'/>
<id>urn:sha1:7944af959ca0b48f0e8ea5c506e801e07a6b8124</id>
<content type='text'>
This patch adds the --refresh option to the quilt push invocation in the
Makefile to automatically update the patches if the context changed.
</content>
</entry>
<entry>
<title>Derive Default for libnitrokey structs</title>
<updated>2020-09-20T09:50:05Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2020-09-20T03:01:06Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=e9a06bb9a2802a5ae6011fcd96cf54e1cfc7d311'/>
<id>urn:sha1:e9a06bb9a2802a5ae6011fcd96cf54e1cfc7d311</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Use quilt to manage modifications in src/ffi.rs</title>
<updated>2020-09-20T09:39:07Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2020-09-20T02:37:31Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=2b367a30df6e155621c116c41cc262dd96ad1a33'/>
<id>urn:sha1:2b367a30df6e155621c116c41cc262dd96ad1a33</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add Makefile for generating src/ffi.rs</title>
<updated>2020-09-20T09:34:23Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2020-09-20T02:32:40Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-sys-rs/commit/?id=7394a6b188c2a6c0d5ae72f8bba5fddc9720613b'/>
<id>urn:sha1:7394a6b188c2a6c0d5ae72f8bba5fddc9720613b</id>
<content type='text'>
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.
</content>
</entry>
</feed>
