1#![no_std]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![deny(
10 warnings,
11 trivial_casts,
12 trivial_numeric_casts,
13 unused_import_braces,
14 unused_qualifications
15)]
16#![forbid(unsafe_code)]
17#![doc(
18 html_logo_url = "https://raw.githubusercontent.com/cometbft/cometbft-rs/main/img/logo-cometbft-rs_3961x4001.png"
19)]
20
21extern crate alloc;
22
23#[cfg(any(feature = "std", test))]
24extern crate std;
25
26#[macro_use]
27mod proto_macros;
28
29pub mod error;
30
31pub mod abci;
32pub mod account;
33pub mod block;
34pub mod bytes;
35pub mod chain;
36pub mod channel;
37pub mod consensus;
38pub mod crypto;
39pub mod duration;
40pub mod evidence;
41pub mod genesis;
42pub mod hash;
43pub mod merkle;
44mod moniker;
45pub mod node;
46mod prelude;
47pub mod private_key;
48pub mod privval;
49pub mod proposal;
50pub mod public_key;
51pub mod serializers;
52pub mod signature;
53pub mod time;
54mod timeout;
55pub mod trust_threshold;
56pub mod tx;
57pub mod validator;
58mod version;
59pub mod vote;
60
61#[cfg(test)]
62mod test;
63
64pub use crate::{
65 block::Block,
66 error::Error,
67 genesis::Genesis,
68 hash::{AppHash, Hash},
69 moniker::Moniker,
70 private_key::PrivateKey,
71 proposal::Proposal,
72 public_key::{CometbftKey, PublicKey},
73 signature::Signature,
74 time::Time,
75 timeout::Timeout,
76 version::Version,
77 vote::Vote,
78};