1#![doc = include_str!("../README.md")]
17#![cfg_attr(docsrs, feature(doc_auto_cfg))]
18#![cfg_attr(target_arch = "wasm32", 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 mod debug;
29pub mod deserialized_responses;
30mod error;
31pub mod event_cache;
32pub mod latest_event;
33pub mod media;
34pub mod notification_settings;
35mod response_processors;
36mod rooms;
37
38pub mod read_receipts;
39pub use read_receipts::PreviousEventsProvider;
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;
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 rooms::{
58 apply_redaction, Room, RoomCreateWithCreatorEventContent, RoomDisplayName, RoomHero, RoomInfo,
59 RoomInfoNotableUpdate, RoomInfoNotableUpdateReasons, RoomMember, RoomMembersUpdate,
60 RoomMemberships, RoomState, RoomStateFilter,
61};
62pub use store::{
63 ComposerDraft, ComposerDraftType, QueueWedgeError, StateChanges, StateStore, StateStoreDataKey,
64 StateStoreDataValue, StoreError,
65};
66pub use utils::{
67 MinimalRoomMemberEvent, MinimalStateEvent, OriginalMinimalStateEvent, RedactedMinimalStateEvent,
68};
69
70#[cfg(test)]
71matrix_sdk_test::init_tracing_for_tests!();
72
73#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
75pub struct SessionMeta {
76 pub user_id: OwnedUserId,
78 pub device_id: OwnedDeviceId,
80}