1#![recursion_limit = "256"]
2#![warn(clippy::unwrap_used)]
3
4pub use xmtp_mls_attachments as attachments;
5pub mod builder;
6pub mod client;
7pub mod context {
9 pub use crate::features::XmtpMlsLocalContext;
10 pub use crate::groups::context::XmtpSharedContext;
11 pub use xmtp_mls_core::context::*;
12}
13pub mod core {
15 pub use xmtp_mls_core::*;
16}
17mod definitions;
18#[cfg(any(test, feature = "diagnostics"))]
19pub mod diagnostics;
20pub mod features;
21pub use xmtp_mls_engine::groups;
22pub mod identity {
24 pub use xmtp_mls_core::identity::*;
25 pub use xmtp_mls_identity::identity_ext::*;
26 #[cfg(any(test, feature = "test-hooks"))]
27 pub use xmtp_mls_identity::identity_lifecycle::ENABLE_WELCOME_POINTERS;
28 #[cfg(any(test, feature = "test-hooks"))]
29 #[doc(hidden)]
30 pub use xmtp_mls_identity::identity_lifecycle::WelcomePointersHook;
31 pub use xmtp_mls_identity::identity_lifecycle::{
32 IdentityStrategy, XmtpKeyPackage, XmtpKeyPackageBuilder,
33 };
34}
35pub use xmtp_mls_core::mls_store;
36use xmtp_mls_core::mutex_registry;
37pub use xmtp_mls_identity::{identity_lifecycle, identity_updates, inbox_handles};
38pub use xmtp_mls_messages as messages;
39pub mod prelude;
40pub mod server_configuration {
42 pub use crate::core::config_refresh as worker;
43 pub use xmtp_mls_server_config::server_configuration::*;
44}
45use crate::core::state_tx;
46pub use client::VisibilityConfirmationOptions;
47pub use xmtp_mls_server_config::storage_location;
48pub mod subscriptions {
50 #[doc(hidden)]
51 pub use xmtp_mls_core::events as internal;
52 pub use xmtp_mls_engine::subscriptions::{barrier, incoming};
53 pub use xmtp_mls_streams::*;
54
55 #[cfg(all(test, not(target_arch = "wasm32")))]
57 mod rate_limit_tests;
58}
59pub mod task_handlers;
60pub mod utils;
61pub mod worker {
63 pub use xmtp_mls_core::worker::*;
64 pub use xmtp_mls_device_sync as device_sync;
65 pub use xmtp_mls_identity::key_package_maintenance;
66 pub(crate) use xmtp_mls_notifications::worker as notifications;
67}
68#[cfg(test)]
69mod worker_tests;
70pub use definitions::*;
71
72#[cfg(any(test, feature = "test-utils"))]
73pub mod test;
74
75pub use client::{Client, Network};
76pub use xmtp_common as common;
77pub use xmtp_db as db;
78use xmtp_db::StorageError;
79pub use xmtp_id::InboxOwner;
80pub mod mls_common {
82 pub use xmtp_mls_group_keys::{commit_log, group_keys, mls_ext};
83 pub use xmtp_mls_group_state::{
84 app_data, group, group_metadata, group_mutable_metadata, inbox_id, libxmtp_version,
85 };
86 pub use xmtp_mls_tls_collections::{tls_map, tls_set};
87}
88pub use xmtp_mls_validation as mls_validation;
89pub use xmtp_proto::api_client::*;
90
91pub fn version() -> &'static str {
92 env!("CARGO_PKG_VERSION")
93}
94
95#[cfg_attr(not(target_arch = "wasm32"), ctor::ctor(unsafe))]
96#[cfg(all(test, not(target_arch = "wasm32")))]
97fn test_setup() {
98 xmtp_common::logger();
99 let _ = fdlimit::raise_fd_limit();
100}