Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by mail-b.sr.ht (Postfix) with ESMTPS id B0B5BFF1FB for <~ireas/nitrokey-rs-dev@lists.sr.ht>; Thu, 24 Sep 2020 23:36:10 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=pass (2048-bit key) header.d=ireas.org header.i=@ireas.org header.b=lCjsIxiI Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4ByBJ942f2zKmkR for <~ireas/nitrokey-rs-dev@lists.sr.ht>; Fri, 25 Sep 2020 01:36:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ireas.org; s=MBO0001; t=1600990567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uIaJ+v8tJGMh7uFXCZA82hvKfOXf5OelKyOeQxg8f/c=; b=lCjsIxiIo9ldwJVrPOmVjknRZYoMs8FqndZSH3pmDJl0UgHRX5RN0XDYlShKFaAzMzQ8t8 AtBU5AieHx8zAK7bup9YWfYIiAm9Etg9JGRB9TDrh6HdYRVEhUh7lNlXO86echcypVxAHc Rgty7tTUCnb8ijgn1X8d3fPNfaGoHpnBXdijqz4PUJhKLnn6dppwuROnS+qZcb+Ru86aXs QtuumbzZ7y2uObo9ia+rXFS2xusdwiee+JtHjvUTSehVZPcKfXU2xe+yUqH8rAS4EgNQzY wMcXATr2goFaVPNO+ChQ+XSw05Q9A58IYzs0SLGppIT7QObcwWDssMKPgL7MWg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id n95fIGCXy1Ga for <~ireas/nitrokey-rs-dev@lists.sr.ht>; Fri, 25 Sep 2020 01:36:03 +0200 (CEST) Date: Fri, 25 Sep 2020 01:35:59 +0200 From: Robin Krahl To: ~ireas/nitrokey-rs-dev@lists.sr.ht Subject: [ANNOUNCE] nitrokey-sys-rs v3.6.0 released Message-ID: <20200924233559.GA14907@ireas.org> Mail-Followup-To: ~ireas/nitrokey-rs-dev@lists.sr.ht MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline X-MBO-SPAM-Probability: X-Rspamd-Score: -10.12 / 15.00 / 15.00 X-Rspamd-Queue-Id: 55F06108B X-Rspamd-UID: 6eeb1a --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable nitrokey-sys-rs v3.6.0 has been released. It is available as a signed tag = in the nitrokey-sys-rs Git repository: https://git.sr.ht/~ireas/nitrokey-sys-rs/refs/v3.6.0 Or on crates.io: https://crates.io/crates/nitrokey-sys/3.6.0 This release updates the libnitrokey dependency to version 3.6.0 and refact= ors the bindings generation. It adds the bindgen feature that enables generati= ng the bindings during build instead of using the pre-generated bindings. Note that with this release, the main Git repository has moved to sourcehut. As always, thanks to Daniel M=FCller for contributions, ideas and reviews. Changelog --------- - 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. - Add `bindgen` feature that re-generates the bindings during the build, including layout tests. - Update to libnitrokey 3.6, causing all following changes. - New constants: - `NK_device_model_NK_LIBREM` (`NK_device_model` enum) - New structures: - `NK_config` - New functions: - `NK_device_serial_number_as_u32` - `NK_write_config_struct` - `NK_free_config` - `NK_read_config_struct` - `NK_free_password_safe_slot_status` - Deprecated functions: - `NK_set_unencrypted_read_only` - `NK_set_unencrypted_read_write` Commit summary -------------- Robin Krahl (17): Add Makefile for generating src/ffi.rs Use quilt to manage modifications in src/ffi.rs Remove unnecessary __uint*_t typedefs Re-generate bindings in src/ffi.rs Derive Default for libnitrokey structs Implement Display for Version in build.rs Update to libnitrokey v3.6 Automatically refresh patches Do not include layout tests in generated bindings Add feature to generate bindings during build Add verify-bindings make target Add the Librem Key model to the unit tests Update contribution information in readme Fix formatting for deprecation attributes Add build script for CI Disable default features for bindgen Release v3.6.0 .builds/archlinux.yml | 36 + .gitignore | 2 + CHANGELOG.md | 22 + Cargo.toml | 8 +- Makefile | 25 + README.md | 25 +- build.rs | 47 +- .../DeviceCommunicationExceptions.cpp | 0 {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/LICENSE | 0 {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/NK_C_API.cc | 51 +- {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/NK_C_API.h | 84 +- .../NitrokeyManager.cc | 48 +- {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/README.md | 83 ++ .../command_id.cc | 3 + {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/device.cc | 84 +- .../libnitrokey/CommandFailedException.h | 0 .../libnitrokey/DeviceCommunicationExceptions.h | 0 .../libnitrokey/LibraryException.h | 0 .../libnitrokey/LongOperationInProgressException.h | 0 .../libnitrokey/NitrokeyManager.h | 3 + .../libnitrokey/command.h | 0 .../libnitrokey/command_id.h | 0 .../libnitrokey/cxx_semantics.h | 0 .../libnitrokey/deprecated.h | 0 .../libnitrokey/device.h | 18 +- .../libnitrokey/device_proto.h | 2 +- .../libnitrokey/dissect.h | 0 .../libnitrokey/hidapi/hidapi.h | 0 .../libnitrokey/log.h | 1 + .../libnitrokey/misc.h | 0 .../libnitrokey/stick10_commands.h | 0 .../libnitrokey/stick10_commands_0.8.h | 0 .../libnitrokey/stick20_commands.h | 0 .../libnitrokey/version.h | 0 {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/log.cc | 0 {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/misc.cc | 0 {libnitrokey-v3.5 =3D> libnitrokey-v3.6}/version.cc | 0 .../version.cc.in | 0 patches/deprecated.diff | 46 + patches/remove-uint.diff | 21 + patches/series | 2 + src/ffi.rs | 1540 +++++++---------= ---- src/lib.rs | 8 +- 43 files changed, 1065 insertions(+), 1094 deletions(-) --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEXP0gHdh2xl8puuMojpsIcFJPadgFAl9tLVgACgkQjpsIcFJP adi65hAAiQLNXhKOib1BFMTeJuIXGiVkmpKdtK9lNLTxRf2XK3bQvlREU/1lU5bd gOBY9A4AO5ht5v/gul62RHGO24jkH7frCqCZi+utLpNtQbkbpye0Xi6QFuCoCJyW YcuuwwyBC8mbUZ9jXMjGvG50d7fimTlU62Xufvy5DL7lmz7c8XROwtYefgyAFX7N kLI/pnQQVgii6WzoCF8XzbbvDl+wiJ9PrmWezsKP888+7eOcEx5vohTOSKnD5eql frDM3RHzLqccvAzxTcnM3Ssh3LflCZuBoBAsPfDsm4++KWUjQoBmcuad/QFTFv60 7yFOsggpMBipJHdjioM/ArvCYiAZAI5RPybdHqmSbQK8n8mT3ZsdYszQIq9hksFb icF0aGD+RfPZc7TwuZ6Gcv0pBd6KxHeJQ9a/sswtMTQonQRBVXn2sqcQrhPnqMSf cSGLs+b6kHEDj5rwMO2R67CrwRXGRD1sAyKmDRDgWF8elXVah+dsWo0VQFKSTWZr OWGLNfCL+L7m8rW3NwzpEU2UENieZpntnCh69ISQujsvi5p7uLcHLPbt+ojD7iLz Hcs5PlGz67OCNzdyEvYM3vMJSJXEZxd00eU7PPFao/afdCtgDfJcf3pxmKSCLwAU 3qUsmtB43iqO8pkOS1DEJZx8ZHiiaQ20l0mRWAFNGdmCoqEH4ZM= =dBa1 -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--