31 stable releases

new 1.7.2 Mar 4, 2025
1.6.4 Jan 31, 2025
1.6.0 Dec 16, 2024
1.5.3 Nov 7, 2024
1.0.1 Nov 24, 2023

#230 in Magic Beans

Download history 580/week @ 2024-11-15 404/week @ 2024-11-22 368/week @ 2024-11-29 459/week @ 2024-12-06 572/week @ 2024-12-13 211/week @ 2024-12-20 202/week @ 2024-12-27 811/week @ 2025-01-03 446/week @ 2025-01-10 596/week @ 2025-01-17 916/week @ 2025-01-24 1812/week @ 2025-01-31 896/week @ 2025-02-07 2006/week @ 2025-02-14 2357/week @ 2025-02-21 1257/week @ 2025-02-28

6,798 downloads per month
Used in 2 crates

Apache-2.0

57KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments C 275 SLoC // 0.1% comments GNU Style Assembly 37 SLoC Shell 26 SLoC // 0.2% comments

Rust Low-level bindings to the Ledger C SDK

Dynamic TOML Badge

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
~44K SLoC