1#![doc = include_str!("../README.md")]
17#![cfg_attr(docsrs, feature(doc_auto_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;
36mod response_processors;
37mod room;
38
39pub mod read_receipts;
40pub mod sliding_sync;
41
42pub mod store;
43pub mod sync;
44#[cfg(any(test, feature = "testing"))]
45mod test_utils;
46mod utils;
47
48#[cfg(feature = "uniffi")]
49uniffi::setup_scaffolding!();
50
51pub use client::{BaseClient, ThreadingSupport};
52#[cfg(any(test, feature = "testing"))]
53pub use http;
54#[cfg(feature = "e2e-encryption")]
55pub use matrix_sdk_crypto as crypto;
56pub use once_cell;
57pub use room::{
58 EncryptionState, InviteAcceptanceDetails, PredecessorRoom, Room,
59 RoomCreateWithCreatorEventContent, RoomDisplayName, RoomHero, RoomInfo, RoomInfoNotableUpdate,
60 RoomInfoNotableUpdateReasons, RoomMember, RoomMembersUpdate, RoomMemberships, RoomState,
61 RoomStateFilter, SuccessorRoom, apply_redaction,
62};
63pub use store::{
64 ComposerDraft, ComposerDraftType, QueueWedgeError, StateChanges, StateStore, StateStoreDataKey,
65 StateStoreDataValue, StoreError,
66};
67pub use utils::{
68 MinimalRoomMemberEvent, MinimalStateEvent, OriginalMinimalStateEvent, RedactedMinimalStateEvent,
69};
70
71#[cfg(test)]
72matrix_sdk_test_utils::init_tracing_for_tests!();
73
74#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
76pub struct SessionMeta {
77 pub user_id: OwnedUserId,
79 pub device_id: OwnedDeviceId,
81}