~ireas/nitrokey-rs-dev

4 2

[ANNOUNCE] nitrokey-sys-rs v3.7.0 released

Details
Message ID
<20220430084955.GA7307@ireas.org>
DKIM signature
missing
Download raw message
nitrokey-sys-rs v3.7.0 has been released.  It is available as a signed tag in
the nitrokey-sys-rs Git repository:
	https://git.ireas.org/nitrokey-sys-rs/tag/?h=v3.7.0
Or on crates.io:
	https://crates.io/crates/nitrokey-sys/3.7.0

This release mainly pulls in the upstream v3.7 release – thanks to
Daniel Mueller for the patch!

Changelog
---------

- Update to libnitrokey 3.7, causing all following changes.
- New functions:
  - `NK_get_random`
  - `NK_set_log_function`
- New structures:
  - `GetRandom_t`

Commit summary
--------------

Robin Krahl (4):
      Ensure that CStrings live long enough in tests
      Fix clippy warnings in build.rs
      Add libusb to CI environment
      Release v3.7.0

Daniel Mueller (1):
      Update to libnitrokey v3.7

 .builds/archlinux.yml                              |  1 +
 CHANGELOG.md                                       |  8 ++
 Cargo.toml                                         |  2 +-
 build.rs                                           |  8 +-
 .../DeviceCommunicationExceptions.cpp              |  0
 {libnitrokey-v3.6 => libnitrokey-v3.7}/LICENSE     |  0
 {libnitrokey-v3.6 => libnitrokey-v3.7}/NK_C_API.cc | 22 ++++++
 {libnitrokey-v3.6 => libnitrokey-v3.7}/NK_C_API.h  | 26 ++++++-
 .../NitrokeyManager.cc                             | 89 ++++++++++++++--------
 {libnitrokey-v3.6 => libnitrokey-v3.7}/README.md   | 27 ++++++-
 .../command_id.cc                                  |  2 +
 {libnitrokey-v3.6 => libnitrokey-v3.7}/device.cc   |  9 ++-
 .../libnitrokey/CommandFailedException.h           |  0
 .../libnitrokey/DeviceCommunicationExceptions.h    |  2 +-
 .../libnitrokey/LibraryException.h                 |  0
 .../libnitrokey/LongOperationInProgressException.h |  0
 .../libnitrokey/NitrokeyManager.h                  |  5 +-
 .../libnitrokey/command.h                          |  1 +
 .../libnitrokey/command_id.h                       |  3 +-
 .../libnitrokey/cxx_semantics.h                    |  0
 .../libnitrokey/deprecated.h                       |  0
 .../libnitrokey/device.h                           |  4 +-
 .../libnitrokey/device_proto.h                     |  4 +-
 .../libnitrokey/dissect.h                          |  0
 .../libnitrokey/hidapi/hidapi.h                    |  0
 .../libnitrokey/log.h                              |  9 +++
 .../libnitrokey/misc.h                             |  0
 .../libnitrokey/stick10_commands.h                 | 35 +++++++++
 .../libnitrokey/stick10_commands_0.8.h             |  0
 .../libnitrokey/stick20_commands.h                 |  0
 .../libnitrokey/version.h                          |  0
 {libnitrokey-v3.6 => libnitrokey-v3.7}/log.cc      |  9 +++
 {libnitrokey-v3.6 => libnitrokey-v3.7}/misc.cc     |  0
 {libnitrokey-v3.6 => libnitrokey-v3.7}/version.cc  |  6 ++
 .../version.cc.in                                  |  0
 patches/deprecated.diff                            |  8 +-
 patches/remove-uint.diff                           |  4 +-
 src/ffi.rs                                         | 43 ++++++++++-
 src/lib.rs                                         | 12 ++-
 39 files changed, 275 insertions(+), 64 deletions(-)
Details
Message ID
<71aa4189-ad6d-fd8e-3e07-e9b2546bc891@posteo.net>
In-Reply-To
<20220430084955.GA7307@ireas.org> (view parent)
DKIM signature
missing
Download raw message
Great stuff, thanks for the quick turnaround Robin! I noticed that the
https://git.ireas.org/ repositories (mentioned below) are outdated.
Should we reference the ones on sourcehut instead? Can we delete them to
prevent confusion?

Thanks,
Daniel

On 4/30/22 1:49 AM, Robin Krahl wrote:
> nitrokey-sys-rs v3.7.0 has been released.  It is available as a signed tag in
> the nitrokey-sys-rs Git repository:
> 	https://git.ireas.org/nitrokey-sys-rs/tag/?h=v3.7.0
> Or on crates.io:
> 	https://crates.io/crates/nitrokey-sys/3.7.0
> 
> This release mainly pulls in the upstream v3.7 release – thanks to
> Daniel Mueller for the patch!
> 
> Changelog
> ---------
> 
> - Update to libnitrokey 3.7, causing all following changes.
> - New functions:
>    - `NK_get_random`
>    - `NK_set_log_function`
> - New structures:
>    - `GetRandom_t`
> 
> Commit summary
> --------------
> 
> Robin Krahl (4):
>        Ensure that CStrings live long enough in tests
>        Fix clippy warnings in build.rs
>        Add libusb to CI environment
>        Release v3.7.0
> 
> Daniel Mueller (1):
>        Update to libnitrokey v3.7
> 
>   .builds/archlinux.yml                              |  1 +
>   CHANGELOG.md                                       |  8 ++
>   Cargo.toml                                         |  2 +-
>   build.rs                                           |  8 +-
>   .../DeviceCommunicationExceptions.cpp              |  0
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/LICENSE     |  0
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/NK_C_API.cc | 22 ++++++
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/NK_C_API.h  | 26 ++++++-
>   .../NitrokeyManager.cc                             | 89 ++++++++++++++--------
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/README.md   | 27 ++++++-
>   .../command_id.cc                                  |  2 +
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/device.cc   |  9 ++-
>   .../libnitrokey/CommandFailedException.h           |  0
>   .../libnitrokey/DeviceCommunicationExceptions.h    |  2 +-
>   .../libnitrokey/LibraryException.h                 |  0
>   .../libnitrokey/LongOperationInProgressException.h |  0
>   .../libnitrokey/NitrokeyManager.h                  |  5 +-
>   .../libnitrokey/command.h                          |  1 +
>   .../libnitrokey/command_id.h                       |  3 +-
>   .../libnitrokey/cxx_semantics.h                    |  0
>   .../libnitrokey/deprecated.h                       |  0
>   .../libnitrokey/device.h                           |  4 +-
>   .../libnitrokey/device_proto.h                     |  4 +-
>   .../libnitrokey/dissect.h                          |  0
>   .../libnitrokey/hidapi/hidapi.h                    |  0
>   .../libnitrokey/log.h                              |  9 +++
>   .../libnitrokey/misc.h                             |  0
>   .../libnitrokey/stick10_commands.h                 | 35 +++++++++
>   .../libnitrokey/stick10_commands_0.8.h             |  0
>   .../libnitrokey/stick20_commands.h                 |  0
>   .../libnitrokey/version.h                          |  0
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/log.cc      |  9 +++
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/misc.cc     |  0
>   {libnitrokey-v3.6 => libnitrokey-v3.7}/version.cc  |  6 ++
>   .../version.cc.in                                  |  0
>   patches/deprecated.diff                            |  8 +-
>   patches/remove-uint.diff                           |  4 +-
>   src/ffi.rs                                         | 43 ++++++++++-
>   src/lib.rs                                         | 12 ++-
>   39 files changed, 275 insertions(+), 64 deletions(-)
Details
Message ID
<20220430174652.GB1200@ireas.org>
In-Reply-To
<71aa4189-ad6d-fd8e-3e07-e9b2546bc891@posteo.net> (view parent)
DKIM signature
missing
Download raw message
On 2022-04-30 15:20:15, Daniel Müller wrote:
> Great stuff, thanks for the quick turnaround Robin! I noticed that the
> https://git.ireas.org/ repositories (mentioned below) are outdated.
> Should we reference the ones on sourcehut instead? Can we delete them to
> prevent confusion?

You’re right, I noticed that too.  I forgot to update my mail generation
script.  Will do so before the next release.  I want to keep the
git.ireas.org repositories as a backup, and I have a cron script that
automatically pulls in changes.  Maybe I forgot to add this repository
to that script – I will have a look at that.

/Robin
Details
Message ID
<84bc79ec-7138-6a0d-de2a-a67dcd542439@posteo.net>
In-Reply-To
<20220430174652.GB1200@ireas.org> (view parent)
DKIM signature
missing
Download raw message
On 4/30/22 10:46 AM, Robin Krahl wrote:
> On 2022-04-30 15:20:15, Daniel Müller wrote:
>> Great stuff, thanks for the quick turnaround Robin! I noticed that the
>> https://git.ireas.org/ repositories (mentioned below) are outdated.
>> Should we reference the ones on sourcehut instead? Can we delete them to
>> prevent confusion?
> 
> You’re right, I noticed that too.  I forgot to update my mail generation
> script.  Will do so before the next release.  I want to keep the
> git.ireas.org repositories as a backup, and I have a cron script that
> automatically pulls in changes.  Maybe I forgot to add this repository
> to that script – I will have a look at that.

Sounds good. By the way, I just noticed that we may have inadvertently
introduced a backwards compatibility breaking change by using Rust
features that are only supported in more resent versions of the
toolchain. See here:
https://github.com/d-e-s-o/nitrocli/runs/6241530957?check_suite_focus=true

It's not an issue for nitrocli (because we pin everything and I manually
have to bump), but it's not great in general. At the same time, I recall
you wanted to keep nitrokey-sys versions in sync with libnitrokey. So
perhaps the best way out is to explicitly state that the former does not
follow semver? In which case you'd probably want to pin nitrokey-sys in
nitrokey-rs.

Daniel
Details
Message ID
<20220430182311.GC1200@ireas.org>
In-Reply-To
<84bc79ec-7138-6a0d-de2a-a67dcd542439@posteo.net> (view parent)
DKIM signature
missing
Download raw message
Good catch!  I didn’t check the compatibility because the changes seemed
pretty unsuspicious …  Currently, the versioning policy is to sync only
the major and minor version, so we can easily release a v3.7.1 version
that fixes backwards compatibility.  I’ll have a look at it in the next
days.

/Robin
Reply to thread Export thread (mbox)