1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! 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::*;