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
//! Tendermint Key Management System

#![forbid(unsafe_code)]
#![deny(warnings, missing_docs, unused_qualifications)]
#![doc(html_root_url = "https://docs.rs/tmkms/0.6.0-rc0")]

#[cfg(not(any(feature = "softsign", feature = "yubihsm", feature = "ledgertm")))]
compile_error!(
    "please enable one of the following backends with cargo's --features argument: \
     yubihsm, ledgertm, softsign (e.g. --features=yubihsm)"
);

extern crate prost_amino as prost;
#[macro_use]
extern crate abscissa;
#[macro_use]
extern crate log;

pub mod application;
pub mod chain;
pub mod client;
pub mod commands;
pub mod config;
pub mod error;
pub mod keyring;
pub mod prelude;
pub mod rpc;
pub mod session;
pub mod unix_connection;
#[cfg(feature = "yubihsm")]
pub mod yubihsm;

pub use crate::{application::KmsApplication, unix_connection::UnixConnection};