1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-19 14:38:47 +00:00

feat(core/rust): allow debug feature in tests (means we can print things)

This commit is contained in:
matejcik 2023-06-20 12:00:43 +02:00 committed by matejcik
parent 5a83a7171d
commit 437b9e5991
2 changed files with 2 additions and 1 deletions

View File

@ -30,11 +30,11 @@ rgb_led = []
test = [ test = [
"button", "button",
"cc", "cc",
"debug",
"glob", "glob",
"micropython", "micropython",
"protobuf", "protobuf",
"ui", "ui",
"ui_debug",
"dma2d", "dma2d",
"touch", "touch",
] ]

View File

@ -33,6 +33,7 @@ pub mod ui;
pub mod strutil; pub mod strutil;
#[cfg(feature = "debug")] #[cfg(feature = "debug")]
#[cfg(not(test))]
#[panic_handler] #[panic_handler]
/// More detailed panic handling. The difference against /// More detailed panic handling. The difference against
/// default `panic` below is that this "debug" version /// default `panic` below is that this "debug" version