ledger_secure_sdk_sys 1.11.4

Bindings to Ledger C SDK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Rust Low-level bindings to the Ledger C SDK
![Dynamic TOML Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2FLedgerHQ%2Fledger-device-rust-sdk%2Frefs%2Fheads%2Fmaster%2Fledger_secure_sdk_sys%2FCargo.toml&query=%24.package.version&label=version)

Provides access to low-level APIs to the operating system of Ledger devices.

## Build

Depending on the target (`--target nanosplus`, `--target nanox`, ...), this crate will `git clone` the appropriate branch (`API_LEVEL_x`) of the [C SDK](https://github.com/LedgerHQ/ledger-secure-sdk/) and compile the subset of files necessary for the [Rust SDK](https://github.com/LedgerHQ/ledger-device-rust-sdk/) to work.

To use an already-cloned C SDK, you can pass its path through the environment variable `LEDGER_SDK_PATH=/path/to/c_sdk` or through `cargo`'s `--config` flag:

```sh
cargo build --target nanosplus --config env.LEDGER_SDK_PATH="../ledger-secure-sdk/"
```