celestia_types/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4pub mod any;
5pub mod blob;
6pub mod block;
7mod byzantine;
8pub mod consts;
9mod data_availability_header;
10pub mod eds;
11mod error;
12#[cfg(any(
13    feature = "uniffi",
14    all(target_arch = "wasm32", feature = "wasm-bindgen")
15))]
16pub mod evidence;
17mod extended_header;
18pub mod fraud_proof;
19pub mod hash;
20mod merkle_proof;
21pub mod nmt;
22#[cfg(feature = "p2p")]
23#[cfg_attr(docsrs, doc(cfg(feature = "p2p")))]
24pub mod p2p;
25pub mod row;
26pub mod row_namespace_data;
27pub mod sample;
28pub mod serializers;
29mod share;
30#[cfg(any(
31    feature = "uniffi",
32    all(target_arch = "wasm32", feature = "wasm-bindgen")
33))]
34pub mod signature;
35pub mod state;
36mod sync;
37#[cfg(any(test, feature = "test-utils"))]
38#[cfg_attr(docsrs, doc(cfg(feature = "test-utils")))]
39pub mod test_utils;
40pub mod trust_level;
41#[cfg(feature = "uniffi")]
42pub mod uniffi_types;
43mod validate;
44mod validator_set;
45
46pub use crate::blob::{Blob, Commitment};
47pub use crate::block::Height;
48pub use crate::consts::appconsts::AppVersion;
49pub use crate::data_availability_header::*;
50pub use crate::eds::{AxisType, ExtendedDataSquare};
51pub use crate::error::*;
52pub use crate::extended_header::*;
53pub use crate::fraud_proof::FraudProof;
54pub use crate::merkle_proof::MerkleProof;
55pub use crate::share::*;
56pub use crate::sync::*;
57pub use crate::validate::*;
58
59// `uniffi::use_remote_type` macro seems a bit limited in that it works correctly only
60// for types that are exported in the root of the crate
61#[cfg(feature = "uniffi")]
62pub use crate::hash::Hash;
63
64#[cfg(all(test, target_arch = "wasm32"))]
65wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
66
67#[cfg(feature = "uniffi")]
68uniffi::setup_scaffolding!();