Skip to main content

xmtp_mls_core/
lib.rs

1//! Vocabulary that every layer of the client shares: events, configuration,
2//! policies, notification settings, metrics, preflight, and the durable tasks
3//! that storage transactions enqueue, plus the client context, the local
4//! identity, the MLS store and the worker runner. Code here names no type
5//! from the identity, engine or feature crates.
6
7pub mod api_status;
8pub mod change_callbacks;
9#[cfg(any(test, feature = "test-hooks"))]
10#[doc(hidden)]
11pub mod commit_lock;
12pub mod config;
13pub mod config_refresh;
14pub mod context;
15pub mod events;
16pub mod hmac_epoch;
17pub mod identity;
18pub mod metrics;
19pub mod mls_store;
20pub mod mutex_registry;
21pub mod notifications;
22pub mod policy;
23pub mod preflight;
24pub mod reconnect;
25pub mod state_tx;
26pub mod sync_tasks;
27pub mod task_channels;
28#[cfg(test)]
29pub(crate) mod test_context;
30pub mod version;
31pub mod worker;
32
33#[cfg(all(any(test, feature = "test-hooks"), not(target_arch = "wasm32")))]
34#[doc(hidden)]
35pub use state_tx::precommit_test_hook;
36
37#[cfg_attr(not(target_arch = "wasm32"), ctor::ctor(unsafe))]
38#[cfg(all(test, not(target_arch = "wasm32")))]
39fn test_setup() {
40    xmtp_common::logger();
41    let _ = fdlimit::raise_fd_limit();
42}