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

#378 in Operating systems

Download history 358/week @ 2024-01-30 329/week @ 2024-02-06 389/week @ 2024-02-13 266/week @ 2024-02-20 140/week @ 2024-02-27 144/week @ 2024-03-05 122/week @ 2024-03-12 161/week @ 2024-03-19 95/week @ 2024-03-26 125/week @ 2024-04-02 130/week @ 2024-04-09 174/week @ 2024-04-16 149/week @ 2024-04-23 243/week @ 2024-04-30 134/week @ 2024-05-07 101/week @ 2024-05-14

657 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