1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-30 10:28:14 +00:00
trezor-firmware/core/embed/rust
Roman Zeyde 365116be52 refactor(core): use Qstr instead of StrBuffer in coverage::Key
It allows `coverage::Key` to be `Send` & `Sync` - otherwise,
wrapping coverage data with a `spin::Mutex` will fail due to:
```
error[E0277]: `*const u8` cannot be sent between threads safely
   --> src/coverage/mod.rs:49:23
    |
49  | static COVERAGE_DATA: Mutex<FnvIndexMap<Key, u64, { 1024 * 1024 }>> =
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be sent between threads safely
    |
    = help: within `IndexMap<Key, u64, hash32::BuildHasherDefault<hash32::fnv::Hasher>, 1048576>`, the trait `Send` is not implemented for `*const u8`
note: required because it appears within the type `StrBuffer`
```

[no changelog]
2025-06-17 17:09:30 +03:00
..
.cargo feat(core): Add Rust Protobuf codec 2021-06-08 09:55:19 +02:00
docs chore(core/rust): move illustration outside src/ tree 2024-02-12 14:49:32 +01:00
fuzz
src refactor(core): use Qstr instead of StrBuffer in coverage::Key 2025-06-17 17:09:30 +03:00
build.rs perf(core): rewrite trezor.log and trezor.wire_log in Rust 2025-06-11 10:26:09 +03:00
Cargo.lock feat(core): update NRF application from firmware 2025-06-09 17:12:31 +02:00
Cargo.toml style(core): fix a few Rust lints 2025-06-11 09:58:08 +03:00
crypto.h feat(core/rust): add trezorcrypto bindings 2024-02-12 14:49:32 +01:00
librust_qstr.h refactor(core): cleanup homescreen params 2025-06-13 19:36:51 +02:00
librust_qstr.h.mako fix(core): remove debug-related data from PYOPT=1 firmware builds 2025-04-24 17:27:21 +03:00
librust.h perf(core): rewrite trezor.log and trezor.wire_log in Rust 2025-06-11 10:26:09 +03:00
micropython.h perf(core): rewrite trezor.log and trezor.wire_log in Rust 2025-06-11 10:26:09 +03:00
qstr.h feat(vendor): update MicroPython to support sorted qstr pools 2025-04-14 21:20:08 +03:00
rust_smp.h feat(core): update NRF application from firmware 2025-06-09 17:12:31 +02:00
rust_types.h fix(core/bootloader): increase c_laoyout_t buffer size 2025-05-16 14:56:23 +02:00
rust_ui_bootloader.h feat(core/bootloader): menu item reboot always active 2025-06-11 09:57:47 +02:00
rust_ui_common.h feat(core): update NRF application from firmware 2025-06-09 17:12:31 +02:00
rust_ui_prodtest.h feat(core/prodtest): add fuel gauge to prodtest welcome screen 2025-05-30 14:04:45 +02:00
rustfmt.toml chore(core/rust): fixes and formatting 2021-10-07 15:01:55 +02:00
trezorhal.h feat(core): update NRF application from firmware 2025-06-09 17:12:31 +02:00