Crate that allows developing Ledger Nano S apps in Rust with a default configuration.
Contains:
- low-level pre-generated bindings to the C SDK version 1.6.0
- some safe wrappers over common syscalls
- IO abstractions
This SDK is still in BETA as wrappers are currently missing, but two apps were made using it:
All issues and PRs are welcome !
Building requires adding a toolchain 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 recommanded as some unstable features are required.
rustup default nightly
rustup target add thumbv6m-none-eabi
- install Clang.
- install an ARM GCC toolchain
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:
- Check if the code builds on nightly
- Check that
clippy
does not emit any warnings - check that your code follows
rustfmt
's format (usingcargo fmt
)