Skip to main content

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 namespace_data;
22pub mod nmt;
23pub mod row;
24pub mod row_namespace_data;
25pub mod sample;
26pub mod serializers;
27mod share;
28#[cfg(any(
29    feature = "uniffi",
30    all(target_arch = "wasm32", feature = "wasm-bindgen")
31))]
32pub mod signature;
33pub mod state;
34mod sync;
35#[cfg(any(test, feature = "test-utils"))]
36#[cfg_attr(docsrs, doc(cfg(feature = "test-utils")))]
37pub mod test_utils;
38pub mod trust_level;
39#[cfg(feature = "uniffi")]
40pub mod uniffi_types;
41mod validate;
42mod validator_set;
43
44pub use crate::blob::{Blob, Commitment};
45pub use crate::block::Height;
46pub use crate::consts::appconsts::AppVersion;
47pub use crate::data_availability_header::*;
48pub use crate::eds::{AxisType, ExtendedDataSquare};
49pub use crate::error::*;
50pub use crate::extended_header::*;
51pub use crate::fraud_proof::FraudProof;
52pub use crate::merkle_proof::MerkleProof;
53pub use crate::share::*;
54pub use crate::sync::*;
55pub use crate::validate::*;
56
57// `uniffi::use_remote_type` macro seems a bit limited in that it works correctly only
58// for types that are exported in the root of the crate
59#[cfg(feature = "uniffi")]
60pub use crate::hash::Hash;
61
62#[cfg(all(test, target_arch = "wasm32"))]
63wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
64
65#[cfg(feature = "uniffi")]
66uniffi::setup_scaffolding!();