1#![doc = include_str!("../README.md")]
17#![cfg_attr(docsrs, feature(doc_cfg))]
18#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
19#![warn(missing_docs, missing_debug_implementations)]
20
21pub use matrix_sdk_common::*;
22use ruma::{OwnedDeviceId, OwnedUserId};
23use serde::{Deserialize, Serialize};
24
25pub use crate::error::{Error, Result};
26
27mod client;
28pub use client::RequestedRequiredStates;
29pub mod debug;
30pub mod deserialized_responses;
31mod error;
32pub mod event_cache;
33pub mod latest_event;
34pub mod media;
35pub mod notification_settings;
36pub mod read_receipts;
37mod response_processors;
38mod room;
39
40pub mod sliding_sync;
41
42pub mod store;
43pub mod sync;
44#[cfg(any(test, feature = "testing"))]
45mod test_utils;
46mod utils;
47
48pub use client::DmRoomDefinition;
49
50#[cfg(feature = "experimental-element-recent-emojis")]
51pub mod recent_emojis;
52
53#[cfg(feature = "uniffi")]
54uniffi::setup_scaffolding!();
55
56pub use client::{BaseClient, ThreadingSupport};
57#[cfg(any(test, feature = "testing"))]
58pub use http;
59#[cfg(feature = "e2e-encryption")]
60pub use matrix_sdk_crypto as crypto;
61pub use room::{
62 CallIntentConsensus, EncryptionState, PredecessorRoom, Room, RoomCreateWithCreatorEventContent,
63 RoomDisplayName, RoomHero, RoomInfo, RoomInfoNotableUpdate, RoomInfoNotableUpdateReasons,
64 RoomMember, RoomMembersUpdate, RoomMemberships, RoomRecencyStamp, RoomState, RoomStateFilter,
65 SuccessorRoom, apply_redaction,
66};
67pub use store::{
68 ComposerDraft, ComposerDraftType, DraftAttachment, DraftAttachmentContent, DraftThumbnail,
69 QueueWedgeError, StateChanges, StateStore, StateStoreDataKey, StateStoreDataValue, StoreError,
70 ThreadSubscriptionCatchupToken,
71};
72pub use utils::{MinimalRoomMemberEvent, MinimalStateEvent, RawStateEventWithKeys};
73
74#[cfg(test)]
75matrix_sdk_test_utils::init_tracing_for_tests!();
76
77#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
79pub struct SessionMeta {
80 pub user_id: OwnedUserId,
82 pub device_id: OwnedDeviceId,
84}