You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[include_gif](./include_gif)| Procedural macro to integrate logo in the UI/UX ||
13
+
|[testmacro](./testmacro)| Procedural macro used by unit and integrations tests ||
14
+
15
+
## Docker builder
16
+
17
+
Docker images are available and shall be used to build and test Rust applications for Ledger devices.
Please check [here](https://github.com/LedgerHQ/ledger-app-builder) for more details.
29
+
30
+
## Links
31
+
32
+
To learn more about using the SDK and what is required to publish an app on the Ledger Live app store, please don't hesitate to check the following resources:
Builds a Nano App and outputs a JSON manifest file that can be used by [ledgerctl](https://github.com/LedgerHQ/ledgerctl) to install an application directly.
4
+
Builds a Ledger device embedded app and outputs a JSON/TOML manifest file that can be used by [ledgerctl](https://github.com/LedgerHQ/ledgerctl) to install an application directly on a device.
4
5
5
-
In order to build for Nano S, Nano X, and Nano S Plus, [custom target files](https://docs.rust-embedded.org/embedonomicon/custom-target.html) are used. They can be found at the root of the [Rust SDK](https://github.com/LedgerHQ/ledger-nanos-sdk/) and can be installed automatically with the command `setup`.
6
+
In order to build for Nano X, Nano S Plus, Stax and Flex [custom target files](https://docs.rust-embedded.org/embedonomicon/custom-target.html) are used. They can be found at the root of the [ledger_secure_sdk_sys](https://github.com/LedgerHQ/ledger_secure_sdk_sys/) and can be installed automatically with the command `cargo ledger setup`.
6
7
7
8
## Installation
8
9
@@ -41,9 +42,10 @@ cargo ledger setup
41
42
### Building
42
43
43
44
```
44
-
cargo ledger build nanos
45
45
cargo ledger build nanox
46
46
cargo ledger build nanosplus
47
+
cargo ledger build stax
48
+
cargo ledger build flex
47
49
```
48
50
49
51
Loading on device can optionally be performed by appending `--load` or `-l` to the command.
This crate provides a macro `include_gif!("path/to/image.gif")` that packs a gif image into a byte representation that can be understood by the [Rust Nano SDK](https://github.com/LedgerHQ/ledger-device-rust-sdk/tree/master/ledger_device_sdk) and included at compile time to produce black-and-white icons.
4
+
This crate provides a macro `include_gif!("path/to/image.gif")` that packs a gif image into a byte representation that can be understood by the [Rust SDK](https://github.com/LedgerHQ/ledger-device-rust-sdk/tree/master/ledger_device_sdk) and included at compile time to produce icons.
Crate that allows developing Ledger device apps in Rust with a default configuration.
4
5
@@ -9,20 +10,11 @@ Contains:
9
10
- signature abstractions
10
11
- UI libraries (the `ui` module for Nano (S/SP/X) apps, `nbgl` module for Stax and Flex apps)
11
12
12
-
## Links
13
-
14
-
To learn more about using the SDK and what is required to publish an app on the Ledger Live app store, please don't hesitate to check the following resources :
Building before rustc 1.54 should fail with `error[E0635]: unknown feature const_fn_trait_bound`.
87
-
88
-
This is solved by activating a specific feature: `cargo build --features pre1_54`
89
-
90
70
## Contributing
91
71
92
-
You can submit an issue or even a pull request if you wish to contribute, we will check what we can do.
72
+
You can submit an issue or even a pull request if you wish to contribute.
93
73
94
74
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:
A macro inspired from [Writing an OS in Rust](https://os.phil-opp.com/testing/) and [Rust Raspberry OS tutorials](https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials/tree/master/13_integrated_testing) that helps building `#![no_std]` tests in some other projects.
0 commit comments