atagen

macltok

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