1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00
trezor-firmware/core/embed/rust/src/protobuf
matejcik 2aa427a6e3 feat(core/rust): make Rust buildable without Micropython
Features `micropython` and `protobuf` are defined. Protobuf implies micropython
because our protobuf impl is pretty much _for_ micropython.

The respective subdirs are included only if the matching feature is defined.

util.rs is moved to micropython because it mostly concerns micropython interop

ResultExt, useful only for ui_debug, is moved to ui::util.

A new module `trezorhal::time` is provided. It mirrors functionality of
`micropython::time` via stmlib functions.  The intended use is to always use
functions from `trezorhal::time`. The right micropython variants are used when
micropython is available, otherwise the pure stmlib versions are called.

ui::*::layout is conditional for micropython feature, because it only concerns
micropython layouts. If we want to reuse layouts defined there, we will need to
export them to not depend on Objs and Qstrs etc.
2022-06-16 13:08:07 +02:00
..
decode.rs feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
defs.rs chore(core/rust): fixes and formatting 2021-10-07 15:01:55 +02:00
encode.rs feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
error.rs chore(core/rust): fixes and formatting 2021-10-07 15:01:55 +02:00
mod.rs feat(core/rust): catch, handle and propagate uPy exceptions 2021-09-21 12:43:31 +02:00
obj.rs feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
zigzag.rs feat(core): Add Rust Protobuf codec 2021-06-08 09:55:19 +02:00