atagen

macltok

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