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
//! Ledger utilites and transports

#![warn(
    missing_copy_implementations,
    missing_debug_implementations,
    missing_docs,
    unreachable_pub,
    clippy::missing_const_for_fn,
    rustdoc::all
)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

/// APDU utilities.
pub mod common;

/// Ledger-related error enum
pub mod errors;

/// Ledger transports. Contains native HID and wasm-bindgen
pub mod transports;

pub use {
    common::{APDUAnswer, APDUCommand},
    errors::LedgerError,
    transports::Ledger,
};

mod protocol;
pub use protocol::LedgerProtocol;