build(core): drop stale trezor_lib dependency from kernel
What changed, and why it matters
This is a routine build cleanup in the Trezor firmware kernel. It removes an unused Rust library dependency called 'trezor_lib' and replaces it with a reference to another module ('io') to ensure certain Rust symbols are still included during linking. There is no indication this change fixes or introduces a security vulnerability.
No security action required. Treat as normal build maintenance. If reviewing for supply-chain hygiene, verify that 'trezor_lib' is genuinely unused and that 'io' is the intended replacement for symbol retention.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies the kernel’s Cargo.toml to drop the ‘trezor_lib’ workspace dependency, updates Cargo.lock accordingly, and changes core/embed/projects/kernel/src/main.rs to use ‘io as ’ instead of ‘trezor_lib as ’. The comment indicates the purpose is to ‘force pull in Rust generated symbols’—a linker-level concern, not a security patch. No functional code changes or vulnerability fixes are visible in the diff.
Changed components
core/embed/projects/kernel/Cargo.tomlcore/embed/projects/kernel/src/main.rscore/embed/Cargo.lockInspect captured patch +2 / −3
### core/embed/Cargo.lock
@@ -485,7 +485,6 @@ dependencies = [
"rtl",
"sec",
"sys",
- "trezor_lib",
"xbuild",
]
### core/embed/projects/kernel/Cargo.toml
@@ -15,7 +15,6 @@ models.workspace = true
rtl.workspace = true
sec.workspace = true
sys.workspace = true
-trezor_lib.workspace = true
[features]
### core/embed/projects/kernel/src/main.rs
@@ -1,4 +1,5 @@
#![no_std]
#![no_main]
-use trezor_lib as _;
+// force pull in Rust generated symbols
+use io as _;Why this scored 12/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.