20 stable releases

1.5.3 Nov 7, 2024
1.5.0 Sep 26, 2024
1.4.3 Jul 17, 2024
1.2.0 Feb 5, 2024
1.0.1 Nov 24, 2023

#972 in Magic Beans

Download history 712/week @ 2024-07-29 464/week @ 2024-08-05 181/week @ 2024-08-12 684/week @ 2024-08-19 886/week @ 2024-08-26 957/week @ 2024-09-02 428/week @ 2024-09-09 387/week @ 2024-09-16 784/week @ 2024-09-23 1040/week @ 2024-09-30 715/week @ 2024-10-07 606/week @ 2024-10-14 425/week @ 2024-10-21 1271/week @ 2024-10-28 1009/week @ 2024-11-04 650/week @ 2024-11-11

3,384 downloads per month
Used in 2 crates

Apache-2.0

185KB
2.5K SLoC

C 2K SLoC // 0.0% comments Rust 881 SLoC // 0.0% comments GNU Style Assembly 37 SLoC

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/"

Dependencies

~0–2.1MB
~43K SLoC