1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-11 08:58:08 +00:00
trezor-firmware/rust/trezor-client/src/protos/mod.rs

42 lines
1.2 KiB
Rust
Raw Normal View History

//! Bindings for Trezor protobufs.
// Note: we do not use the generated `mod.rs` because we want to feature-gate some modules manually.
// This significantly improves compile times.
// See https://github.com/joshieDo/rust-trezor-api/pull/9 for more details.
#[allow(ambiguous_glob_reexports)]
mod generated {
macro_rules! modules {
($($($feature:literal =>)? $module:ident)+) => {$(
$(#[cfg(feature = $feature)])?
mod $module;
$(#[cfg(feature = $feature)])?
pub use self::$module::*;
)+};
}
modules! {
messages
messages_bootloader
messages_common
messages_crypto
messages_debug
messages_management
"bitcoin" => messages_bitcoin
"ethereum" => messages_ethereum
"ethereum" => messages_ethereum_eip712
"ethereum" => messages_ethereum_definitions
"binance" => messages_binance
"cardano" => messages_cardano
"eos" => messages_eos
"monero" => messages_monero
"nem" => messages_nem
"ripple" => messages_ripple
"stellar" => messages_stellar
"tezos" => messages_tezos
"webauthn" => messages_webauthn
}
}
pub use generated::*;