diff --git a/core/embed/rust/build.rs b/core/embed/rust/build.rs index ebcc083bc7..85e0ae93b3 100644 --- a/core/embed/rust/build.rs +++ b/core/embed/rust/build.rs @@ -437,6 +437,7 @@ fn generate_trezorhal_bindings() { .unwrap(); } +#[cfg(feature = "crypto")] fn generate_crypto_bindings() { let out_path = env::var("OUT_DIR").unwrap(); diff --git a/core/embed/rust/src/ui/display/font.rs b/core/embed/rust/src/ui/display/font.rs index ccd6984a33..5ca49f0d93 100644 --- a/core/embed/rust/src/ui/display/font.rs +++ b/core/embed/rust/src/ui/display/font.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "translations")] use spin::RwLockReadGuard; use crate::{ diff --git a/core/embed/rust/src/ui/layout_bolt/component/share_words.rs b/core/embed/rust/src/ui/layout_bolt/component/share_words.rs index 12fe1e677d..25d458bbfb 100644 --- a/core/embed/rust/src/ui/layout_bolt/component/share_words.rs +++ b/core/embed/rust/src/ui/layout_bolt/component/share_words.rs @@ -11,6 +11,7 @@ use crate::{ use super::super::theme; use heapless::Vec; +#[cfg(feature = "ui_debug")] use ufmt::uwrite; const WORDS_PER_PAGE: usize = 4;