atagen

macltok

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