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

43 lines
1.3 KiB
Rust

//! 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, unreachable_pub)]
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
"solana" => messages_solana
"stellar" => messages_stellar
"tezos" => messages_tezos
"webauthn" => messages_webauthn
}
}
pub use generated::*;