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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//! Tendermint blockchain network information types.
//!
//! Tendermint is a high-performance blockchain consensus engine that powers
//! Byzantine fault tolerant applications written in any programming language.
//! This crate provides types for representing information about Tendermint
//! blockchain networks, including chain IDs, block IDs, and block heights.

#![crate_name = "tendermint"]
#![crate_type = "rlib"]
#![deny(
    warnings,
    missing_docs,
    trivial_casts,
    trivial_numeric_casts,
    unused_import_braces,
    unused_qualifications
)]
#![forbid(unsafe_code)]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/tendermint/kms/master/img/tendermint.png",
    html_root_url = "https://docs.rs/tendermint/0.1.2"
)]

#[cfg(feature = "secret-connection")]
extern crate byteorder;
extern crate bytes;
extern crate chrono;
pub extern crate digest;
extern crate failure;
#[macro_use]
extern crate failure_derive;
#[cfg(feature = "secret-connection")]
extern crate prost_amino as prost;
#[cfg(feature = "secret-connection")]
#[macro_use]
extern crate prost_amino_derive as prost_derive;
#[cfg(feature = "serializers")]
extern crate serde;
#[cfg(feature = "serializers")]
#[macro_use]
extern crate serde_derive;
#[cfg(feature = "secret-connection")]
pub extern crate sha2;
#[cfg(feature = "secret-connection")]
pub extern crate signatory;
#[cfg(feature = "secret-connection")]
extern crate signatory_dalek;
extern crate subtle_encoding;
#[cfg(feature = "tai64")]
extern crate tai64;
#[cfg(feature = "secret-connection")]
extern crate zeroize;

pub mod algorithm;
pub mod amino_types;
pub mod block;
pub mod chain;
pub mod error;
pub mod hash;
pub mod public_keys;
#[cfg(feature = "secret-connection")]
pub mod secret_connection;
pub mod timestamp;

pub use algorithm::*;
pub use block::{ParseHeight as ParseBlockHeight, ParseId as ParseBlockId};
pub use chain::ParseId as ParseChainId;
pub use error::*;
pub use hash::*;
pub use public_keys::*;
#[cfg(feature = "secret-connection")]
pub use secret_connection::SecretConnection;
pub use timestamp::*;