/ledger-nanos-sdk

Rust SDK for Nano S applications, in Beta

Primary LanguageCApache License 2.0Apache-2.0

Ledger Nano S SDK for Rust Applications

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 !

Usage

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.

Contributing

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 (using cargo fmt)