Skip to main content

xmtp_common/
lib.rs

1//! Common types shared among all XMTP Crates
2// required to be able to use xmtp_macros::async_trait in this crate
3extern crate self as xmtp_common;
4
5mod macros;
6
7mod error_code;
8pub use error_code::ErrorCode;
9
10#[doc(inline)]
11pub use xmtp_macro::ErrorCode;
12
13#[cfg(any(test, feature = "test-utils"))]
14mod test;
15#[cfg(any(test, feature = "test-utils"))]
16pub use test::*;
17
18#[doc(inline)]
19#[cfg(any(test, feature = "test-utils"))]
20pub use xmtp_macro::test;
21
22#[doc(inline)]
23pub use xmtp_macro::async_trait;
24
25#[cfg(feature = "bench")]
26pub mod bench;
27
28pub mod retry;
29pub use retry::*;
30
31pub mod wasm;
32pub use wasm::*;
33
34pub mod stream_handles;
35pub use stream_handles::*;
36
37pub mod fmt;
38pub mod hex;
39pub mod snippet;
40pub mod time;
41pub mod types;
42
43pub mod r#const;
44pub use r#const::*;
45
46mod event_logging;
47pub use event_logging::*;
48
49pub use xmtp_cryptography::hash::*;
50pub use xmtp_cryptography::rand::*;
51
52pub use xmtp_macro::db_span;
53pub use xmtp_macro::err_span;
54pub use xmtp_macro::log_event;
55pub use xmtp_macro::mls_span;
56pub use xmtp_macro::rpc_span;
57pub use xmtp_macro::span;
58pub use xmtp_macro::timeout;