| 1 | # nitrokey-sys-rs |
| 2 | |
| 3 | Low-level Rust bindings for `libnitrokey`, providing access to Nitrokey |
| 4 | devices. |
| 5 | |
| 6 | This crate contains a copy of the [`libnitrokey`][] library, builds it from |
| 7 | source and links it statically. The host system must provide its dependencies |
| 8 | in the library search path: |
| 9 | |
| 10 | - `libhidapi-libusb0` (on Linux) |
| 11 | - `libhidapi` (on non-Linux systems) |
| 12 | |
| 13 | If you set the `USE_SYSTEM_LIBNITROKEY` environment variable when building this |
| 14 | crate, it links directly against `libnitrokey` instead of building it from |
| 15 | source. In this case, `libnitrokey` must be available in the library search |
| 16 | path. |
| 17 | |
| 18 | ## Versioning |
| 19 | |
| 20 | The major and minor version of the `nitrokey-sys` crate map to the major and |
| 21 | minor version of `libnitrokey`. The `nitrokey-sys` patch version may be |
| 22 | increased independently. |
| 23 | |
| 24 | ## Contact |
| 25 | |
| 26 | For bug reports, patches, feature requests or other messages, please send a |
| 27 | mail to [[email protected]][]. |
| 28 | |
| 29 | ## License |
| 30 | |
| 31 | This project as well as `libnitrokey` are licensed under the [LGPL-3.0][]. |
| 32 | |
| 33 | [`libnitrokey`]: https://github.com/nitrokey/libnitrokey |
| 34 | [[email protected]]: mailto:[email protected] |
| 35 | [LGPL-3.0]: https://opensource.org/licenses/lgpl-3.0.html |