atagen

macltok

public
Star0
Watch0
f137a3c74d1144698237fe4ac1bddd483f9ec85e
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
src/lib.rsRust74 lines3.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
#[cfg(feature = "mirror")]
7
mod mirror;
8
mod model;
9
mod normalise;
10
mod space_order;
11
mod transport;
12
mod uiaa;
13
mod upload;
14
#[cfg(target_family = "wasm")]
15
mod wasm;
16
17
#[cfg(all(feature = "sqlite", target_family = "wasm"))]
18
compile_error!("sqlite has no filesystem to live on in wasm, use indexeddb");
19
#[cfg(all(feature = "indexeddb", not(target_family = "wasm")))]
20
compile_error!("indexeddb only exists in a browser, use sqlite");
21
22
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
23
mod account;
24
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
25
mod accounts;
26
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
27
mod session_store;
28
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
29
mod store_lock;
30
31
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
32
pub use account::{
33
    AccountError, OAuthApplicationType, OAuthLogin, PasswordLogin, PendingOAuthLogin, Restore,
34
    Session, SessionRecord, SoftLogout, StoreConfig, UnsavedSession,
35
};
36
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
37
pub use accounts::{Account, Accounts};
38
#[cfg(any(feature = "sqlite", feature = "indexeddb"))]
39
pub use session_store::{EncryptedSessionStore, SessionStore};
40
41
pub use engine::{Engine, EngineConfig, EngineError};
42
pub use error::{Error, ErrorKind, ServerError};
43
pub use imbl;
44
#[cfg(feature = "mirror")]
45
pub use mirror::{
46
    Mirror, MirrorHandle, SessionStatus, State, StateChange, Subscription, TimelineChange,
47
    TimelineState, Update, UploadFailure, UploadState,
48
};
49
pub use model::{
50
    AccountCommand, AttachmentEncryption, AttachmentUpload, Change, Command, CommandOutput,
51
    ConnectionState, CreateRoomOptions, EncryptionCommand, EncryptionState, EngineErrorKind,
52
    EngineFailure, Event, EventRef, HistoryState, ImagePack, ImagePackSource, ImagePacks,
53
    KeyBackupState, LatestEvent, LifecycleCommand, LinkPreview, LinkPreviewImage, Media,
54
    MediaCommand, MediaDescriptor, MediaFile, MediaId, MediaKind, MediaLocation, MediaSize,
55
    MemberFilter, MemberMembership, MemberSummary, MembershipChange, Message, MessageContent,
56
    MessageEditContent, MessageKind, MessageMentions, NotificationCommand, OwnDevice, PackCommand,
57
    PackImage, PackImageInfo, PackUsage, Patch, PowerLevelChanges, Profile, PushNotification,
58
    PushNotificationEvent, PushNotificationRoom, PushNotificationSender, PushNotificationStatus,
59
    Reaction, RecoveryState, ReplyDetails, ReplyReference, Retain, RichText, RoomCategory,
60
    RoomCommand, RoomHero, RoomListFilter, RoomMatcher, RoomMembership, RoomNotificationMode,
61
    RoomNotificationSettings, RoomPowerLevels, RoomPreset, RoomSummary, RoomVisibility, SendState,
62
    Sender, SpaceChild, Termination, ThreadSummary, TimelineCommand, TimelineContent, TimelineDiff,
63
    TimelineDiffError, TimelineEvent, TimelineId, TimelineItem, TimelineItemId, TypingState,
64
    UploadDetails, UploadOutcome, UploadThumbnail, UtdCause, VerificationAction,
65
    VerificationFailure, VerificationState, VerificationTarget,
66
};
67
pub use ruma;
68
pub use transport::{ClientHandle, EventStream, Pending, SpaceHierarchy};
69
pub use uiaa::{
70
    InteractiveAuth, InteractiveAuthChallenge, InteractiveAuthFailure, InteractiveAuthFlow,
71
    InteractiveAuthOutcome,
72
};
73
#[cfg(target_family = "wasm")]
74
pub use wasm::on_panic;