#sdk #applications #build

sys ledger_secure_sdk_sys

Bindings to Ledger C SDK

33 stable releases

new 1.8.1 Mar 25, 2025
1.7.1 Feb 21, 2025
1.6.0 Dec 16, 2024
1.5.3 Nov 7, 2024
1.0.1 Nov 24, 2023

#921 in Magic Beans

Download history 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 1000/week @ 2025-01-21 969/week @ 2025-01-28 1657/week @ 2025-02-04 1114/week @ 2025-02-11 2342/week @ 2025-02-18 2147/week @ 2025-02-25 1364/week @ 2025-03-04 1248/week @ 2025-03-11 1252/week @ 2025-03-18

6,201 downloads per month
Used in 2 crates

Apache-2.0

54KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments C 263 SLoC // 0.2% 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 nanosplus, --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
~43K SLoC