From 437b9e59916d1a51540dfbb6db7e1d00ce61d1dd Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 20 Jun 2023 12:00:43 +0200 Subject: [PATCH] feat(core/rust): allow debug feature in tests (means we can print things) --- core/embed/rust/Cargo.toml | 2 +- core/embed/rust/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/Cargo.toml b/core/embed/rust/Cargo.toml index dc5298ae73..4ac1755584 100644 --- a/core/embed/rust/Cargo.toml +++ b/core/embed/rust/Cargo.toml @@ -30,11 +30,11 @@ rgb_led = [] test = [ "button", "cc", + "debug", "glob", "micropython", "protobuf", "ui", - "ui_debug", "dma2d", "touch", ] diff --git a/core/embed/rust/src/lib.rs b/core/embed/rust/src/lib.rs index 48de635232..202b8dfbe2 100644 --- a/core/embed/rust/src/lib.rs +++ b/core/embed/rust/src/lib.rs @@ -33,6 +33,7 @@ pub mod ui; pub mod strutil; #[cfg(feature = "debug")] +#[cfg(not(test))] #[panic_handler] /// More detailed panic handling. The difference against /// default `panic` below is that this "debug" version