refactor(sdk,core): move the IPC structs to Core
What changed, and why it matters
This commit is a code cleanup: it moves some data structure definitions from the publicly shared SDK crate into the internal Core firmware crate. The structures describe how apps ask the device to show on-screen prompts and progress bars. Nothing in the change fixes a bug, changes behavior, or adds a security boundary; it only reorganizes which crate owns the code and removes an unused dependency on a serialization library from the SDK.
No security action required. Treat as a normal refactoring commit. Reviewers may want to verify that the moved struct definitions are byte-for-byte identical to the SDK originals and that all call sites were updated, but the diff shows only import path and documentation changes alongside the move.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch refactors IPC message structs used between the Trezor app task and Core firmware. Previously, wire-format types such as TrezorUiEnum, TrezorProgressEnum, Slice, and StrSlice lived in sdk/crates/trezor-app-sdk/src/structs.rs and were re-exported by the SDK. This commit deletes that module from the SDK, adds an equivalent core/embed/api/src/structs.rs, and updates imports in core/embed/api/src/crypto_ipc.rs, core/embed/api/src/ui.rs, core/embed/rust/src/crypto_api.rs, and core/embed/rust/src/ui/api/firmware_micropython.rs to use the local copy. The SDK keeps ABI-stable mirror types under traits::ui (annotated with #[stabby::stabby]), while Core now owns the rkyv-serialized IPC format. Cargo manifests and the supply-chain config are updated to drop the rkyv dependency from trezor-app-sdk.
Changed components
core/embed/api/src/structs.rscore/embed/api/src/crypto_ipc.rscore/embed/api/src/ui.rscore/embed/rust/src/crypto_api.rscore/embed/rust/src/ui/api/firmware_micropython.rssdk/crates/trezor-app-sdk/src/lib.rssdk/crates/trezor-app-sdk/src/traits/ui.rssdk/crates/trezor-app-sdk/Cargo.tomlcore/embed/rust/Cargo.tomlcore/embed/Cargo.locksdk/crates/trezor-app-sdk/supply-chain/config.tomlInspect captured patch +86 / −123
### core/embed/Cargo.lock
@@ -1372,7 +1372,6 @@ version = "0.1.0"
dependencies = [
"cty",
"num_enum",
- "rkyv",
"spin 0.10.1",
"stabby",
"ufmt",
@@ -1432,7 +1431,6 @@ dependencies = [
"spin 0.9.9",
"static-alloc",
"sys",
- "trezor-app-sdk",
"trezor-thp",
"trezor-tjpgdec",
"trezor-ward",
### core/embed/api/src/crypto_ipc.rs
@@ -1,9 +1,10 @@
//! The crypto service's IPC messages between the app task and Core.
use rkyv::{Archive, Deserialize, Serialize};
-use trezor_app_sdk::structs::{Slice, StrSlice};
use ufmt::derive::uDebug;
+use crate::structs::{Slice, StrSlice};
+
/// All crypto operations that can be requested from the app via IPC.
///
/// Built by the app-side `crate::crypto` module, handled by Core in
### core/embed/api/src/lib.rs
@@ -1,4 +1,4 @@
-#![no_std]
+#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(target_os = "none"), feature(thread_local))]
// Every app API function crosses the app ABI boundary
#![deny(improper_ctypes_definitions)]
@@ -12,6 +12,7 @@ pub mod allocator;
mod app_state;
mod crypto;
pub mod crypto_ipc;
+pub mod structs;
mod syslog;
mod ui;
mod v1;
### core/embed/api/src/structs.rs
@@ -1,13 +1,16 @@
-//! Low-level IPC message types for the Trezor UI, Crypto, and Progress interfaces.
+//! The UI and progress IPC messages between the app task and Core,
+//! serialized with [`rkyv`].
//!
-//! These types are serialized via [`rkyv`] and sent over IPC between the app
-//! and the Core firmware task.
+//! They mirror the SDK's `trezor_app_sdk::traits::ui` structs on purpose:
+//! - the SDK structs are the app ABI: they evolve with SDK/ABI versions and
+//! must stay stable for apps already built;
+//! - these structs are the IPC format: they evolve with the firmware, which
+//! builds both ends, and apps never see them;
+//! - one shared set would tie the IPC format to the much stabler ABI and put
+//! `rkyv` back into the SDK; the two sets will drift, which is fine.
//!
-//! **Prefer the higher-level `ui`/`crypto`/`progress` modules and each type's
-//! `new()` constructor over building these directly.** Fields are `pub`
-//! despite that, because Core reads them straight off the archived (rkyv)
-//! form with no wrapper API of its own — that's the one legitimate reader
-//! these fields need to stay public for.
+//! `crate::ui` converts the SDK structs into these; Core reads them straight
+//! off the archived form (`trezor_lib::ui::api`), so the fields are `pub`.
use rkyv::boxed::{ArchivedBox, BoxResolver};
use rkyv::rancor::Fallible;
@@ -245,7 +248,7 @@ impl<'a> SelectMenu<'a> {
}
}
-/// A trade confirmation screen, shown via [`crate::ui::confirm_trade`].
+/// A trade confirmation screen, shown via the SDK's `ui::confirm_trade`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmTrade<'a> {
/// Screen title.
@@ -287,7 +290,7 @@ impl<'a> ConfirmTrade<'a> {
}
}
-/// An action confirmation screen, shown via [`crate::ui::confirm_action`].
+/// An action confirmation screen, shown via the SDK's `ui::confirm_action`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmAction<'a> {
/// Screen title.
@@ -308,7 +311,8 @@ pub struct ConfirmAction<'a> {
pub br_name: Option<StrSlice<'a>>,
/// Button request code sent to the host.
pub br_code: i32,
- /// The menu button returns `Info` to the app instead of opening Core's menu.
+ /// The menu button returns `Info` to the app instead of opening Core's
+ /// menu.
pub external_menu: bool,
}
@@ -341,7 +345,8 @@ impl<'a> ConfirmAction<'a> {
}
}
-/// A transaction summary confirmation screen, shown via [`crate::ui::confirm_summary`].
+/// A transaction summary confirmation screen, shown via the SDK's
+/// `ui::confirm_summary`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmSummary<'a> {
/// Screen title.
@@ -403,7 +408,7 @@ impl<'a> ConfirmSummary<'a> {
}
}
-/// A value confirmation screen, shown via [`crate::ui::confirm_value`].
+/// A value confirmation screen, shown via the SDK's `ui::confirm_value`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmValue<'a> {
/// Screen title.
@@ -432,7 +437,8 @@ pub struct ConfirmValue<'a> {
pub br_name: Option<StrSlice<'a>>,
/// Button request code sent to the host.
pub br_code: i32,
- /// The menu button returns `Info` to the app instead of opening Core's menu.
+ /// The menu button returns `Info` to the app instead of opening Core's
+ /// menu.
pub external_menu: bool,
/// Footer text, and whether it is bold.
pub footer: Option<(StrSlice<'a>, bool)>,
@@ -477,7 +483,8 @@ impl<'a> ConfirmValue<'a> {
}
}
-/// An intro screen shown before [`ConfirmValue`], via [`crate::ui::confirm_value_intro`].
+/// An intro screen shown before [`ConfirmValue`], via the SDK's
+/// `ui::confirm_value_intro`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmValueIntro<'a> {
/// Screen title.
@@ -531,7 +538,7 @@ impl<'a> ConfirmValueIntro<'a> {
}
}
-/// A warning screen, shown via [`crate::ui::show_warning`].
+/// A warning screen, shown via the SDK's `ui::show_warning`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowWarning<'a> {
/// Screen title.
@@ -573,7 +580,7 @@ impl<'a> ShowWarning<'a> {
}
}
-/// A mismatch warning screen, shown via [`crate::ui::show_mismatch`].
+/// A mismatch warning screen, shown via the SDK's `ui::show_mismatch`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowMismatch<'a> {
/// Screen title.
@@ -592,7 +599,7 @@ impl<'a> ShowMismatch<'a> {
}
}
-/// A danger warning screen, shown via [`crate::ui::show_danger`].
+/// A danger warning screen, shown via the SDK's `ui::show_danger`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowDanger<'a> {
/// Screen title.
@@ -630,7 +637,7 @@ impl<'a> ShowDanger<'a> {
}
}
-/// A success screen, shown via [`crate::ui::show_success`].
+/// A success screen, shown via the SDK's `ui::show_success`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowSuccess<'a> {
/// Screen title.
@@ -668,7 +675,7 @@ impl<'a> ShowSuccess<'a> {
}
}
-/// A number-entry screen, shown via [`crate::ui::request_number`].
+/// A number-entry screen, shown via the SDK's `ui::request_number`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct RequestNumber<'a> {
/// Screen title.
@@ -706,7 +713,8 @@ impl<'a> RequestNumber<'a> {
}
}
-/// A property-list confirmation screen, shown via [`crate::ui::confirm_properties`].
+/// A property-list confirmation screen, shown via the SDK's
+/// `ui::confirm_properties`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmProperties<'a> {
/// Screen title.
@@ -723,7 +731,8 @@ pub struct ConfirmProperties<'a> {
pub br_name: Option<StrSlice<'a>>,
/// Button request code sent to the host.
pub br_code: i32,
- /// The menu button returns `Info` to the app instead of opening Core's menu.
+ /// The menu button returns `Info` to the app instead of opening Core's
+ /// menu.
pub external_menu: bool,
}
@@ -752,7 +761,8 @@ impl<'a> ConfirmProperties<'a> {
}
}
-/// A property-list display screen (no confirmation), shown via [`crate::ui::show_properties`].
+/// A property-list display screen (no confirmation), shown via the SDK's
+/// `ui::show_properties`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowProperties<'a> {
/// Screen title.
@@ -786,7 +796,7 @@ impl<'a> ShowProperties<'a> {
}
}
-/// A public key display screen, shown via [`crate::ui::show_public_key`].
+/// A public key display screen, shown via the SDK's `ui::show_public_key`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowPublicKey<'a> {
/// The public key.
@@ -828,7 +838,8 @@ impl<'a> ShowPublicKey<'a> {
}
}
-/// An info screen with a cancel option, shown via [`crate::ui::show_info_with_cancel`].
+/// An info screen with a cancel option, shown via the SDK's
+/// `ui::show_info_with_cancel`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowInfoWithCancel<'a> {
/// Screen title.
@@ -861,7 +872,8 @@ impl<'a> ShowInfoWithCancel<'a> {
}
}
}
-/// A confirmation screen with an extra info button, shown via [`crate::ui::confirm_with_info`].
+/// A confirmation screen with an extra info button, shown via the SDK's
+/// `ui::confirm_with_info`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ConfirmWithInfo<'a> {
/// Screen title.
@@ -903,7 +915,7 @@ impl ConfirmWithInfo<'_> {
}
}
-/// An address display screen, shown via [`crate::ui::show_address`].
+/// An address display screen, shown via the SDK's `ui::show_address`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub struct ShowAddress<'a> {
/// The address.
@@ -959,8 +971,8 @@ impl ShowAddress<'_> {
/// All UI screens that can be requested from the app via IPC.
///
-/// Each variant corresponds to one screen type in the Trezor UI. Constructed
-/// by the higher-level `ui` module — do not construct variants directly.
+/// Each variant corresponds to one screen type in the Trezor UI. Built by
+/// `crate::ui`, handled by Core in `trezor_lib::ui::api`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize)]
pub enum TrezorUiEnum<'a> {
/// A [`SelectMenu`] screen.
@@ -1023,7 +1035,7 @@ mod progress {
/// Progress bar operations that can be requested from the app via IPC.
///
- /// Constructed by the higher-level `progress` module — do not construct variants directly.
+ /// Built by `crate::ui`, handled by Core in `trezor_lib::ui::api`.
#[derive(uDebug, Copy, Clone, PartialEq, Eq, Archive, Serialize, Deserialize)]
pub enum TrezorProgressEnum<'a> {
/// Show a progress indicator.
### core/embed/api/src/ui.rs
@@ -1,15 +1,12 @@
//! Implements [`trezor_app_sdk::traits::ui`]'s `UiV1` on top of
//! [`crate::wire::ipc_call`]. Each method converts its stabby-safe mirror
-//! argument into the matching `trezor_app_sdk::structs` (wire-format) enum
+//! argument into the matching [`crate::structs`] (wire-format) enum
//! variant, sends it to Core's UI/progress service, and converts the
//! response back.
use rkyv::rancor::Failure;
use stabby::option::Option as StabbyOption;
use stabby::slice::Slice;
-use trezor_app_sdk::structs::{
- self, TrezorProgressEnum, TrezorUiEnum, TrezorUiResult as WireTrezorUiResult,
-};
use trezor_app_sdk::traits::ui::{
ConfirmAction, ConfirmProperties, ConfirmSummary, ConfirmTrade, ConfirmValue,
ConfirmValueIntro, ConfirmWithInfo, Property, RequestNumber, SelectMenu, ShowAddress,
@@ -18,6 +15,9 @@ use trezor_app_sdk::traits::ui::{
};
use trezor_app_sdk::traits::util::{ServiceResult, TIMEOUT_MAX};
+use crate::structs::{
+ self, TrezorProgressEnum, TrezorUiEnum, TrezorUiResult as WireTrezorUiResult,
+};
use crate::wire::{CallError, CoreIpcService, call_failed, ipc_call, to_bytes};
fn opt_str(bytes: StabbyOption<Slice<'_, u8>>) -> Option<structs::StrSlice<'_>> {
### core/embed/rust/Cargo.toml
@@ -39,7 +39,6 @@ unsize.workspace = true
without-alloc.workspace = true
zeroize = { workspace = true, optional = true }
rkyv = { workspace = true, optional = true, features = ["alloc", "bytecheck"] }
-trezor-app-sdk = { workspace = true, optional = true }
api = { workspace = true, optional = true }
# crates in embed/ directory
@@ -57,7 +56,7 @@ upymod = { workspace = true, optional = true }
# Selectable components
# --------------------------------------------------------------------------
-app_loading = ["dep:trezor-app-sdk", "dep:rkyv", "dep:api", "tracked_allocator"]
+app_loading = ["dep:rkyv", "dep:api", "tracked_allocator"]
backlight = []
ble = []
boot_ucb = []
### core/embed/rust/src/crypto_api.rs
@@ -1,9 +1,9 @@
#[cfg(feature = "app_loading")]
use api::crypto_ipc::{TrezorCryptoEnum, TrezorCryptoResult};
#[cfg(feature = "app_loading")]
-use rkyv::{rancor::Failure, Archived};
+use api::structs::Slice;
#[cfg(feature = "app_loading")]
-use trezor_app_sdk::structs::Slice;
+use rkyv::{rancor::Failure, Archived};
use crate::micropython::macros::{obj_fn_kw, obj_module};
use crate::micropython::map::Map;
### core/embed/rust/src/ui/api/firmware_micropython.rs
@@ -1,10 +1,10 @@
-use heapless::Vec;
-#[cfg(feature = "app_loading")]
-use rkyv::{option::ArchivedOption, rancor::Failure, tuple::ArchivedTuple2, Archived};
#[cfg(feature = "app_loading")]
-use trezor_app_sdk::structs::{
+use api::structs::{
Property, Slice, StrExt, StrSlice, TrezorProgressEnum, TrezorUiEnum, TrezorUiResult,
};
+use heapless::Vec;
+#[cfg(feature = "app_loading")]
+use rkyv::{option::ArchivedOption, rancor::Failure, tuple::ArchivedTuple2, Archived};
use crate::io::BinaryData;
#[cfg(feature = "app_loading")]
### sdk/crates/trezor-app-sdk/Cargo.toml
@@ -14,7 +14,6 @@ sdk-version = "0.1.0"
crate-type = ["rlib"]
[dependencies]
-rkyv = { version = "0.8", default-features = false }
ufmt = "0.2.0"
spin = "0.10.0"
cty = "0.2.2"
@@ -37,7 +36,7 @@ log_level_debug = []
debug = []
-app = ["rkyv/alloc", "rkyv/bytecheck"]
+app = []
app_runtime = []
# Enables use of unstable (nightly-only) language/library features
### sdk/crates/trezor-app-sdk/README.md
@@ -168,7 +168,7 @@ The wire functions at the crate root are:
| `log` | The `error!`, `warn!`, `info!` and `debug!` macros |
| `error` | The `Error` and `Result` types, and `ResultExt` for call-site context |
| `util` | Small helpers, such as `Timeout` and `systick_ms` |
-| `structs`, `traits` | The types and interfaces shared with Core |
+| `traits` | The ABI shared with Core |
| `mock` | Mock implementations of Core's services (`test` feature) |
## Logging
@@ -192,7 +192,7 @@ output is compiled out.
| Feature | Effect |
| ------- | ------ |
-| `app` (default) | Everything an app needs. Without it, only `structs` and `traits` are available, for code that shares the ABI types with apps |
+| `app` (default) | Everything an app needs. Without it, only `traits` is available, for code that shares the ABI with apps |
| `nightly` (default) | Nightly-only language features used by the panic and abort machinery |
| `log_level_error` / `_warn` / `_info` / `_debug` | Compile in log output up to that level |
| `debug` | Error context chains via `ResultExt` and file/line panic messages, at the cost of binary size |
### sdk/crates/trezor-app-sdk/src/lib.rs
@@ -14,9 +14,9 @@
//! disable on stable toolchains to fall back to stable-compatible
//! implementations.
//!
-//! Without `app`, only `structs` and `traits` (shared API types) are available —
-//! suitable for the core app which only needs to work with the API types. The
-//! app-facing API lives in [`app_runtime`] and is re-exported at the crate root.
+//! Without `app`, only `traits` (the ABI shared with Core) is available —
+//! what Core's side of the API needs. The app-facing API lives in
+//! [`app_runtime`] and is re-exported at the crate root.
#![cfg_attr(not(feature = "test"), no_std)]
#![allow(internal_features)]
@@ -32,9 +32,6 @@
extern crate alloc;
-// Always available: shared API structs used by both core app and extapps
-pub mod structs;
-
/// The stable-ABI traits and types shared with Core.
pub mod traits;
### sdk/crates/trezor-app-sdk/src/traits/ui.rs
@@ -1,11 +1,8 @@
-//! Stable-ABI mirror of `structs.rs`'s UI/progress argument structs.
+//! The UI part of the app ABI: the [`UiV1`] trait and its argument structs.
//!
-//! `structs.rs` is the wire IDL shared byte-for-byte with Core's Rust+Python
-//! side and isn't itself ABI-stable (`rkyv`-only, not `#[stabby::stabby]`).
-//! These mirror types exist purely so the `UiV1` trait can cross the stable
-//! ABI boundary; `core/embed/api`'s implementation converts a mirror value
-//! into the matching `structs.rs` enum internally before sending it over the
-//! wire.
+//! The structs cross the ABI boundary as they are, so their layout is part of
+//! the ABI and changes only with a new ABI version. Core converts them into
+//! its own internal format, which isn't part of this crate.
//!
//! Optional string fields are `StabbyOption<Slice<u8>>` (raw bytes), not
//! `StabbyOption<Str>` — `Str` doesn't propagate niche/determinant info
@@ -86,7 +83,7 @@ pub struct SelectMenu<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ConfirmTrade`].
+/// Arguments of [`UiV1::confirm_trade`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmTrade<'a> {
@@ -106,7 +103,7 @@ pub struct ConfirmTrade<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ConfirmAction`].
+/// Arguments of [`UiV1::confirm_action`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmAction<'a> {
@@ -132,7 +129,7 @@ pub struct ConfirmAction<'a> {
pub external_menu: bool,
}
-/// Stable-ABI form of [`crate::structs::ConfirmSummary`].
+/// Arguments of [`UiV1::confirm_summary`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmSummary<'a> {
@@ -162,11 +159,10 @@ pub struct ConfirmSummary<'a> {
pub br_code: i32,
}
-/// Fields mirror [`crate::structs::ConfirmValue`] except `footer`, which is
-/// flattened into `footer_text`/`footer_bold` since stabby has no tuples;
-/// [`Self::new`] still takes the same `Option<(&str, bool)>` shape as the
-/// wire-format constructor, since a plain (non-ABI-crossing) parameter can
-/// be a tuple.
+/// Arguments of [`UiV1::confirm_value`].
+///
+/// The footer is split into `footer_text` and `footer_bold`, since stabby has
+/// no tuples; [`Self::new`] takes it as one `Option<(&str, bool)>`.
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmValue<'a> {
@@ -204,7 +200,7 @@ pub struct ConfirmValue<'a> {
pub footer_bold: bool,
}
-/// Stable-ABI form of [`crate::structs::ConfirmValueIntro`].
+/// Arguments of [`UiV1::confirm_value_intro`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmValueIntro<'a> {
@@ -230,7 +226,7 @@ pub struct ConfirmValueIntro<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ShowWarning`].
+/// Arguments of [`UiV1::show_warning`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowWarning<'a> {
@@ -250,7 +246,7 @@ pub struct ShowWarning<'a> {
pub danger: bool,
}
-/// Stable-ABI form of [`crate::structs::ShowMismatch`].
+/// Arguments of [`UiV1::show_mismatch`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowMismatch<'a> {
@@ -260,7 +256,7 @@ pub struct ShowMismatch<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ShowDanger`].
+/// Arguments of [`UiV1::show_danger`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowDanger<'a> {
@@ -278,7 +274,7 @@ pub struct ShowDanger<'a> {
pub menu_title: StabbyOption<Slice<'a, u8>>,
}
-/// Stable-ABI form of [`crate::structs::ShowSuccess`].
+/// Arguments of [`UiV1::show_success`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowSuccess<'a> {
@@ -296,7 +292,7 @@ pub struct ShowSuccess<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::RequestNumber`].
+/// Arguments of [`UiV1::request_number`].
#[stabby::stabby]
#[derive(Clone)]
pub struct RequestNumber<'a> {
@@ -314,7 +310,7 @@ pub struct RequestNumber<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ConfirmProperties`].
+/// Arguments of [`UiV1::confirm_properties`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmProperties<'a> {
@@ -336,7 +332,7 @@ pub struct ConfirmProperties<'a> {
pub external_menu: bool,
}
-/// Stable-ABI form of [`crate::structs::ShowProperties`].
+/// Arguments of [`UiV1::show_properties`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowProperties<'a> {
@@ -352,7 +348,7 @@ pub struct ShowProperties<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ShowPublicKey`].
+/// Arguments of [`UiV1::show_public_key`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowPublicKey<'a> {
@@ -372,7 +368,7 @@ pub struct ShowPublicKey<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ShowInfoWithCancel`].
+/// Arguments of [`UiV1::show_info_with_cancel`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowInfoWithCancel<'a> {
@@ -388,7 +384,7 @@ pub struct ShowInfoWithCancel<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ConfirmWithInfo`].
+/// Arguments of [`UiV1::confirm_with_info`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ConfirmWithInfo<'a> {
@@ -408,7 +404,7 @@ pub struct ConfirmWithInfo<'a> {
pub br_code: i32,
}
-/// Stable-ABI form of [`crate::structs::ShowAddress`].
+/// Arguments of [`UiV1::show_address`].
#[stabby::stabby]
#[derive(Clone)]
pub struct ShowAddress<'a> {
### sdk/crates/trezor-app-sdk/supply-chain/config.toml
@@ -26,14 +26,6 @@ url = "https://raw.githubusercontent.com/zcash/rust-ecosystem/main/supply-chain/
version = "0.12.1"
criteria = "safe-to-deploy"
-[[exemptions.bytecheck]]
-version = "0.8.3"
-criteria = "safe-to-deploy"
-
-[[exemptions.bytecheck_derive]]
-version = "0.8.3"
-criteria = "safe-to-deploy"
-
[[exemptions.cfg-if]]
version = "1.0.5"
criteria = "safe-to-deploy"
@@ -90,14 +82,6 @@ criteria = "safe-to-deploy"
version = "2.8.3"
criteria = "safe-to-deploy"
-[[exemptions.munge]]
-version = "0.4.7"
-criteria = "safe-to-deploy"
-
-[[exemptions.munge_macro]]
-version = "0.4.7"
-criteria = "safe-to-deploy"
-
[[exemptions.num_enum]]
version = "0.7.6"
criteria = "safe-to-deploy"
@@ -114,30 +98,6 @@ criteria = "safe-to-deploy"
version = "1.0.107"
criteria = "safe-to-deploy"
-[[exemptions.ptr_meta]]
-version = "0.3.2"
-criteria = "safe-to-deploy"
-
-[[exemptions.ptr_meta_derive]]
-version = "0.3.2"
-criteria = "safe-to-deploy"
-
-[[exemptions.rancor]]
-version = "0.1.3"
-criteria = "safe-to-deploy"
-
-[[exemptions.rend]]
-version = "0.5.4"
-criteria = "safe-to-deploy"
-
-[[exemptions.rkyv]]
-version = "0.8.18"
-criteria = "safe-to-deploy"
-
-[[exemptions.rkyv_derive]]
-version = "0.8.18"
-criteria = "safe-to-deploy"
-
[[exemptions.rustversion]]
version = "1.0.23"
criteria = "safe-to-deploy"Why this scored 13/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.