1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
trezor-firmware/core/embed/rust
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
..
.cargo feat(core): Add Rust Protobuf codec 2021-06-08 09:55:19 +02:00
fuzz build(deps): bump regex from 1.5.4 to 1.5.6 in /core/embed/rust/fuzz 2022-06-07 12:20:02 +02:00
src feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
build.rs feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
Cargo.lock feat(core/rust): add trezorhal bindings 2022-06-08 14:42:04 +02:00
Cargo.toml feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
librust_qstr.h refactor(core/rust/ui): emit event when component tree is initialized 2022-05-16 13:54:43 +02:00
librust.h feat(core/rust/ui): return Layout results as singleton objects 2022-04-04 13:32:07 +02:00
micropython.h feat(core): Add Instant and Duration types 2022-01-28 09:58:49 +01:00
qstr.h feat(core): Add Rust bindings to MicroPython and trezorhal 2021-05-05 16:00:21 +02:00
rustfmt.toml chore(core/rust): fixes and formatting 2021-10-07 15:01:55 +02:00
trezorhal.h feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00