atagen

macltok

public
Star0
Watch0
13da982fe7bb952b0fb1ae3efb8bd3ca4f39b204
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
src/lib.rsRust97 lines4.3 KB
1
//! A compact application backend contract on top of the Matrix Rust SDK.
2
3
mod encryption;
4
mod engine;
5
mod error;
6
mod mentions;
7
mod mentions_model;
8
#[cfg(feature = "mirror")]
9
mod mirror;
10
mod model;
11
mod normalise;
12
mod repair_model;
13
mod search;
14
mod search_model;
15
mod space_order;
16
mod transport;
17
mod uiaa;
18
mod upload;
19
#[cfg(target_family = "wasm")]
20
mod wasm;
21
22
#[cfg(all(feature = "sqlite", target_family = "wasm"))]
23
compile_error!("sqlite has no filesystem to live on in wasm, use indexeddb");
24
#[cfg(all(feature = "indexeddb", not(target_family = "wasm")))]
25
compile_error!("indexeddb only exists in a browser, use sqlite");
26
27
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
28
mod account;
29
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
30
mod accounts;
31
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
32
mod session_store;
33
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
34
mod store_lock;
35
36
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
37
pub use account::{
38
    AccountError, OAuthApplicationType, OAuthLogin, PasswordLogin, PendingOAuthLogin, Restore,
39
    Session, SessionRecord, SoftLogout, StoreConfig, UnsavedSession,
40
};
41
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
42
pub use accounts::{Account, Accounts};
43
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
44
pub use session_store::{EncryptedSessionStore, SessionStore};
45
46
pub use engine::{Engine, EngineConfig, EngineError};
47
pub use error::{Error, ErrorKind, ServerError};
48
pub use imbl;
49
pub use mentions_model::{
50
    MentionCaptureState, MentionCoverage, MentionEntry, MentionGap, MentionGapReason, MentionKey,
51
    MentionReason, MentionsBoundary, MentionsCommand, MentionsPage, MentionsUpdate,
52
    SavedMentionContext,
53
};
54
#[cfg(feature = "mirror")]
55
pub use mirror::{
56
    Mirror, MirrorHandle, SessionStatus, State, StateChange, Subscription, ThreadListChange,
57
    ThreadListState, TimelineChange, TimelineState, Update, UploadFailure, UploadState,
58
};
59
pub use model::{
60
    AccountCommand, AttachmentEncryption, AttachmentUpload, Change, Command, CommandOutput,
61
    ConnectionState, CreateRoomOptions, EncryptionCommand, EncryptionState, EngineErrorKind,
62
    EngineFailure, Event, EventContext, EventContextCloseReason, EventContextCommand,
63
    EventContextPage, EventContextSession, EventRef, HistoryState, HttpPusher, ImagePack,
64
    ImagePackSource, ImagePacks, KeyBackupState, LatestEvent, LifecycleCommand, LinkPreview,
65
    LinkPreviewImage, Media, MediaCommand, MediaDescriptor, MediaFile, MediaId, MediaKind,
66
    MediaLocation, MediaSize, MemberFilter, MemberMembership, MemberSummary, MembershipChange,
67
    Message, MessageContent, MessageEditContent, MessageKind, MessageMentions, NotificationCommand,
68
    OwnDevice, PackCommand, PackImage, PackImageInfo, PackUsage, Patch, PowerLevelChanges, Profile,
69
    PushFormat, PushNotification, PushNotificationEvent, PushNotificationRoom,
70
    PushNotificationSender, PushNotificationStatus, PusherKey, Reaction, RecentHistoryState,
71
    RecoveryKey, RecoveryState, ReplyDetails, ReplyReference, Retain, RichText, RoomCategory,
72
    RoomCommand, RoomHero, RoomListFilter, RoomMatcher, RoomMembership, RoomNotificationMode,
73
    RoomNotificationSettings, RoomPowerLevels, RoomPreset, RoomSummary, RoomVisibility, SendState,
74
    Sender, SpaceChild, Termination, ThreadListCloseReason, ThreadListCommand, ThreadListEntry,
75
    ThreadSummary, ThreadUnread, TimelineCommand, TimelineContent, TimelineDiff, TimelineDiffError,
76
    TimelineEvent, TimelineId, TimelineItem, TimelineItemId, TypingState, UploadDetails,
77
    UploadOutcome, UploadThumbnail, UtdCause, VerificationAction, VerificationFailure,
78
    VerificationState, VerificationTarget,
79
};
80
pub use repair_model::{
81
    HistoryContinuity, HistoryGap, HistoryGapLifecycle, HistoryGapPause, HistoryRepairCommand,
82
    HistoryRepairPhase, HistoryRepairReport, HistoryRepairStop,
83
};
84
pub use ruma;
85
pub use search_model::{
86
    RoomSearchCoverage, SearchBackfill, SearchCloseReason, SearchCommand, SearchCoverage,
87
    SearchHit, SearchInMemory, SearchMatch, SearchPage, SearchScope, SearchSession,
88
};
89
#[doc(hidden)]
90
pub use transport::PublicationAck;
91
pub use transport::{ClientHandle, EventStream, Pending, SpaceHierarchy};
92
pub use uiaa::{
93
    InteractiveAuth, InteractiveAuthChallenge, InteractiveAuthFailure, InteractiveAuthFlow,
94
    InteractiveAuthOutcome,
95
};
96
#[cfg(target_family = "wasm")]
97
pub use wasm::on_panic;