| Crates.io | ledger_device_sdk |
| lib.rs | ledger_device_sdk |
| version | 1.25.0 |
| created_at | 2023-11-14 16:21:00.18152+00 |
| updated_at | 2025-09-23 14:07:28.170876+00 |
| description | Ledger device Rust SDK |
| homepage | |
| repository | https://github.com/LedgerHQ/ledger-device-rust-sdk |
| max_upload_size | |
| id | 1035021 |
| size | 332,815 |
Crate that allows developing Ledger device apps in Rust with a default configuration.
Contains:
ui module for Nano (S/SP/X) apps, nbgl module for Stax and Flex apps)| Nano X | Nano S Plus | Stax | Flex |
|---|---|---|---|
| :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Building requires adding rust-src to your Rust installation, and both Clang and arm-none-eabi-gcc.
On Ubuntu, gcc-multilib might also be required.
Using rustc nightly builds is mandatory as some unstable features are required.
rustup default nightly-2024-12-01rustup component add rust-srcIf you wish to install the ARM gcc toolchain using your distribution's packages, these commands should work:
# On Debian and Ubuntu
sudo apt install clang gcc-arm-none-eabi gcc-multilib
# On Fedora or Red Hat Entreprise Linux
sudo dnf install clang arm-none-eabi-gcc arm-none-eabi-newlib
# On ArchLinux
sudo pacman -S clang arm-none-eabi-gcc arm-none-eabi-newlib
This SDK provides custom target files. One for each supported device.
cargo build --release --target=nanox
cargo build --release --target=nanosplus
cargo build --release --target=stax
cargo build --release --target=flex
You can submit an issue or even a pull request if you wish to contribute.
Make sure you've followed the installation steps above. In order for your PR to be accepted, it will have to pass the CI, which performs the following checks:
clippy does not emit any warningsrustfmt's format (using cargo fmt)