6 stable releases

1.2.0 Feb 5, 2024
1.1.0 Jan 11, 2024
1.0.3 Dec 20, 2023
1.0.1 Nov 24, 2023

#354 in Operating systems

Download history 187/week @ 2024-01-06 154/week @ 2024-01-13 181/week @ 2024-01-20 420/week @ 2024-01-27 325/week @ 2024-02-03 397/week @ 2024-02-10 301/week @ 2024-02-17 156/week @ 2024-02-24 121/week @ 2024-03-02 165/week @ 2024-03-09 156/week @ 2024-03-16 109/week @ 2024-03-23 113/week @ 2024-03-30 112/week @ 2024-04-06 177/week @ 2024-04-13 167/week @ 2024-04-20

570 downloads per month
Used in 2 crates

Apache-2.0

41KB
982 lines

Rust Low-level bindings to the Ledger C SDK

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

Build

Depending on the target (--target nanos, --target nanox, ...), this crate will git clone the appropriate branch (API_LEVEL_x) of the C SDK and compile the subset of files necessary for the 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:

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

No runtime deps

~0–2MB
~39K SLoC