19 stable releases

new 1.5.2 Oct 31, 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

#24 in #operating

Download history 227/week @ 2024-07-11 290/week @ 2024-07-18 462/week @ 2024-07-25 588/week @ 2024-08-01 437/week @ 2024-08-08 264/week @ 2024-08-15 859/week @ 2024-08-22 1119/week @ 2024-08-29 544/week @ 2024-09-05 417/week @ 2024-09-12 498/week @ 2024-09-19 990/week @ 2024-09-26 860/week @ 2024-10-03 810/week @ 2024-10-10 326/week @ 2024-10-17 648/week @ 2024-10-24

2,837 downloads per month
Used in 2 crates

Apache-2.0

185KB
2.5K SLoC

C 2K SLoC // 0.0% comments Rust 880 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–2MB
~41K SLoC