LedgerHQ / cargo-ledger

(Moved in the ledger device rust SDK --> https://github.com/LedgerHQ/ledger-device-rust-sdk). Load code on a Ledger device with a `cargo` subcommand
Apache License 2.0
15 stars 12 forks source link

Extend CLI to allow consuming prebuilt app #5

Closed Ericson2314 closed 2 years ago

Ericson2314 commented 2 years ago

I will use both these flags together with our Nix build pipeline.

We will still read the config from the Cargo.toml, because that is the metadata source of truth, but the ELF exe will already be prebuilt and in a read-only location. We'll therefore have the json and hex side-by-side, and then move then together to the output location.

Now that the CLI is more complex, I took the opportunity to convert it to the declarative style of Clap --- it's really nice!

Contains #4

Ericson2314 commented 2 years ago

Thanks!