7 releases (4 stable)

1.1.1 Sep 19, 2024
1.1.0 Jul 17, 2024
1.0.1 May 6, 2024
1.0.0 Nov 27, 2023
0.3.0 Sep 15, 2023

#249 in Cryptography

Download history 92/week @ 2024-07-27 45/week @ 2024-08-03 112/week @ 2024-08-10 171/week @ 2024-08-17 255/week @ 2024-08-24 281/week @ 2024-08-31 249/week @ 2024-09-07 196/week @ 2024-09-14 154/week @ 2024-09-21 121/week @ 2024-09-28 62/week @ 2024-10-05 101/week @ 2024-10-12 85/week @ 2024-10-19 53/week @ 2024-10-26 164/week @ 2024-11-02 47/week @ 2024-11-09

371 downloads per month
Used in 3 crates (via nethsm)

MIT license

235KB
5K SLoC

Rust API client for NetHSM

Overview

This API client was generated by the OpenAPI Generator project.

  • API version: v1

All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All base64 encoded values are Big Endian.

Installation

Put the package under your project folder in a directory named nethsm-sdk and add the following to Cargo.toml under [dependencies]:

nethsm-sdk-rs = { git = "https://github.com/Nitrokey/nethsm-sdk-rs" }

To get access to the crate's generated documentation, use:

cargo doc --open

Updating the Code

Dependencies: Rust toolchain, Docker

To update the code from the latest API definition, execute:

./update_openapi.sh

It will build the custom openapi-generator Docker image. Run it to generate the code from the online API definition and then format the generated code.

Licence

The Rust crate is licensed under the MIT license.
The customized OpenAPI generator code is modified from the openapi-generator repository, licenced under Apache 2.0.

Dependencies

~13–23MB
~445K SLoC