5 releases (2 stable)

new 1.0.1 May 6, 2024
1.0.0 Nov 27, 2023
0.5.0 Sep 28, 2023
0.4.0 Sep 18, 2023
0.3.0 Sep 15, 2023

#781 in Web programming

Download history 16/week @ 2024-01-21 13/week @ 2024-02-11 26/week @ 2024-02-18 18/week @ 2024-02-25 28/week @ 2024-03-03 36/week @ 2024-03-10 64/week @ 2024-03-17 26/week @ 2024-03-31 3/week @ 2024-04-07 42/week @ 2024-04-21 48/week @ 2024-04-28

96 downloads per month
Used in nethsm

MIT license

4.5K SLoC

Rust API client for NetHSM


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.


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:


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.


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.


~375K SLoC