24 stable releases

new 1.6.3 Jan 24, 2025
1.6.0 Dec 16, 2024
1.5.3 Nov 7, 2024
1.4.3 Jul 17, 2024
1.0.1 Nov 24, 2023

#369 in Magic Beans

Download history 674/week @ 2024-10-08 538/week @ 2024-10-15 460/week @ 2024-10-22 1377/week @ 2024-10-29 882/week @ 2024-11-05 647/week @ 2024-11-12 596/week @ 2024-11-19 330/week @ 2024-11-26 320/week @ 2024-12-03 593/week @ 2024-12-10 451/week @ 2024-12-17 132/week @ 2024-12-24 557/week @ 2024-12-31 613/week @ 2025-01-07 375/week @ 2025-01-14 746/week @ 2025-01-21

2,299 downloads per month
Used in 2 crates

Apache-2.0

54KB
1K SLoC

Rust 1K SLoC // 0.0% comments C 260 SLoC // 0.1% 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.2MB
~45K SLoC