Skip to content

Commit f926783

Browse files
committed
fix: bump dependencies and fix warnings
1 parent fff39fd commit f926783

File tree

7 files changed

+82
-24
lines changed

7 files changed

+82
-24
lines changed

dep/alamgu/github.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"repo": "alamgu",
44
"branch": "develop",
55
"private": false,
6-
"rev": "f41eb60cb2b5145b4948c51898062911c342db6b",
7-
"sha256": "16n2b0irpkgjzp5mrl6vxza0bw7p5c6bmgbfmynbzbcyij5arhnh"
6+
"rev": "7cb39c91dfc9af8c9bc499712df68efb49f694f3",
7+
"sha256": "1b6ndhk24dj6vmyg3qvggfx4zyd90lfdda2qq4g4nf26wi85k6zn"
88
}

run-docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eu
33

44
export APP_NAME=`grep name rust-app/Cargo.toml | cut -d '"' -f2 | head -n1`
5-
export RUST_NANOS_SDK_REV="3c22c1c1b5e2d909e34409fc92cfeed775541a63"
5+
export RUST_NANOS_SDK_REV="ad901b54e3178659fa6cac2885a3081afbf9c9bb"
66
export RUST_NANOS_SDK_GIT="https://github.com/LedgerHQ/ledger-device-rust-sdk.git"
77

88
OUT_DIR="./docker-outputs"

rust-app/Cargo.lock

Lines changed: 40 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-app/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iota_rebased"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
authors = ["IOTA Foundation <[email protected]>"]
55
edition = "2018"
66
autobins = false
@@ -30,14 +30,15 @@ speculos = [
3030
"ledger-parser-combinators/logging",
3131
]
3232
extra_debug = ["ledger-log/log_trace"]
33+
pending_review_screen = []
3334

3435
[target.'cfg(target_family = "bolos")'.dependencies]
35-
ledger_device_sdk = "1.7.1"
36-
ledger_secure_sdk_sys = "1.2.0"
36+
ledger_device_sdk = "1.20.4"
37+
ledger_secure_sdk_sys = "1.6.7"
3738
ledger-prompts-ui = { git = "https://github.com/alamgu/ledger-prompts-ui" }
3839

3940
[target.'cfg(target_family = "bolos")'.dev-dependencies.ledger_device_sdk]
40-
version = "1.7.1"
41+
version = "1.20.4"
4142
features = ["speculos"]
4243

4344
[[bin]]

rust-app/src/implementation.rs

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use core::future::Future;
2626

2727
type IotaAddressRaw = [u8; IOTA_ADDRESS_LENGTH];
2828

29+
#[allow(dead_code)]
2930
pub struct IotaPubKeyAddress(ledger_device_sdk::ecc::ECPublicKey<65, 'E'>, IotaAddressRaw);
3031

3132
impl Address<IotaPubKeyAddress, ledger_device_sdk::ecc::ECPublicKey<65, 'E'>>
@@ -119,7 +120,10 @@ impl HasOutput<CallArgSchema> for DefaultInterp {
119120
}
120121

121122
impl<BS: Clone + Readable> AsyncParser<CallArgSchema, BS> for DefaultInterp {
122-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
123+
type State<'c>
124+
= impl Future<Output = Self::Output> + 'c
125+
where
126+
BS: 'c;
123127
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
124128
async move {
125129
let enum_variant =
@@ -210,7 +214,10 @@ impl HasOutput<CommandSchema> for DefaultInterp {
210214
}
211215

212216
impl<BS: Clone + Readable> AsyncParser<CommandSchema, BS> for DefaultInterp {
213-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
217+
type State<'c>
218+
= impl Future<Output = Self::Output> + 'c
219+
where
220+
BS: 'c;
214221
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
215222
async move {
216223
let enum_variant =
@@ -270,7 +277,10 @@ impl HasOutput<ArgumentSchema> for DefaultInterp {
270277
}
271278

272279
impl<BS: Clone + Readable> AsyncParser<ArgumentSchema, BS> for DefaultInterp {
273-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
280+
type State<'c>
281+
= impl Future<Output = Self::Output> + 'c
282+
where
283+
BS: 'c;
274284
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
275285
async move {
276286
let enum_variant =
@@ -325,7 +335,10 @@ impl<const PROMPT: bool> HasOutput<ProgrammableTransaction<PROMPT>>
325335
impl<BS: Clone + Readable, const PROMPT: bool> AsyncParser<ProgrammableTransaction<PROMPT>, BS>
326336
for ProgrammableTransaction<PROMPT>
327337
{
328-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
338+
type State<'c>
339+
= impl Future<Output = Self::Output> + 'c
340+
where
341+
BS: 'c;
329342
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
330343
async move {
331344
let mut recipient = None;
@@ -522,7 +535,10 @@ impl<const PROMPT: bool> HasOutput<TransactionKind<PROMPT>> for TransactionKind<
522535
impl<BS: Clone + Readable, const PROMPT: bool> AsyncParser<TransactionKind<PROMPT>, BS>
523536
for TransactionKind<PROMPT>
524537
{
525-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
538+
type State<'c>
539+
= impl Future<Output = Self::Output> + 'c
540+
where
541+
BS: 'c;
526542
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
527543
async move {
528544
let enum_variant =
@@ -578,7 +594,10 @@ impl HasOutput<TransactionExpiration> for DefaultInterp {
578594
}
579595

580596
impl<BS: Clone + Readable> AsyncParser<TransactionExpiration, BS> for DefaultInterp {
581-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
597+
type State<'c>
598+
= impl Future<Output = Self::Output> + 'c
599+
where
600+
BS: 'c;
582601
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
583602
async move {
584603
let enum_variant =
@@ -664,7 +683,10 @@ impl<const PROMPT: bool> HasOutput<TransactionData<PROMPT>> for TransactionData<
664683
impl<BS: Clone + Readable, const PROMPT: bool> AsyncParser<TransactionData<PROMPT>, BS>
665684
for TransactionData<PROMPT>
666685
{
667-
type State<'c> = impl Future<Output = Self::Output> + 'c where BS: 'c;
686+
type State<'c>
687+
= impl Future<Output = Self::Output> + 'c
688+
where
689+
BS: 'c;
668690
fn parse<'a: 'c, 'b: 'c, 'c>(&'b self, input: &'a mut BS) -> Self::State<'c> {
669691
async move {
670692
let enum_variant =

rust-app/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#![allow(incomplete_features)]
33
#![feature(stmt_expr_attributes)]
44
#![feature(adt_const_params)]
5-
#![feature(str_internals)]
65
#![feature(type_alias_impl_trait)]
7-
#![feature(const_mut_refs)]
6+
#![cfg_attr(not(version("1.83")), feature(const_mut_refs))]
7+
// Hack to fix build with nightly-2024-11-22
8+
#![cfg_attr(version("1.84"), feature(generic_const_exprs))]
89
#![feature(try_blocks)]
910
#![cfg_attr(all(target_family = "bolos", test), no_main)]
1011
#![cfg_attr(target_family = "bolos", feature(custom_test_frameworks))]

rust-app/src/settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ impl Default for Settings {
1717
impl Settings {
1818
#[inline(never)]
1919
pub fn get(&self) -> u8 {
20+
#[allow(static_mut_refs)]
2021
let settings = unsafe { SETTINGS.get_mut() };
2122
return *settings.get_ref();
2223
}
2324

2425
// The inline(never) is important. Otherwise weird segmentation faults happen on speculos.
2526
#[inline(never)]
2627
pub fn set(&mut self, v: &u8) {
28+
#[allow(static_mut_refs)]
2729
let settings = unsafe { SETTINGS.get_mut() };
2830
settings.update(v);
2931
}

0 commit comments

Comments
 (0)