From 5427b1c4668add15fa8f1f980d180df2dbe858f6 Mon Sep 17 00:00:00 2001 From: GroM Date: Mon, 29 Jan 2024 17:28:08 +0100 Subject: [PATCH] Add pending_review_screen as an app's feature only --- Cargo.toml | 3 ++- src/main.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 39aa1aa..0307d27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,8 @@ opt-level = 'z' lto = true [features] -pending_review_screen = ["ledger_device_sdk/pending_review_screen"] +default = ["pending_review_screen"] +pending_review_screen = [] [package.metadata.ledger] curve = ["secp256k1"] diff --git a/src/main.rs b/src/main.rs index e350bb9..18467e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,6 +37,7 @@ use handlers::{ sign_tx::{handler_sign_tx, TxContext}, }; use ledger_device_sdk::io::{ApduHeader, Comm, Event, Reply, StatusWords}; +#[cfg(feature = "pending_review_screen")] use ledger_device_sdk::ui::gadgets::display_pending_review; ledger_device_sdk::set_panic!(ledger_device_sdk::exiting_panic); @@ -125,6 +126,7 @@ extern "C" fn sample_main() { // Developer mode / pending review popup // must be cleared with user interaction + #[cfg(feature = "pending_review_screen")] display_pending_review(&mut comm); let mut tx_ctx = TxContext::new();