atagen

macltok

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