forge
Explore
Log in

Don't you dare go Hollow

in_old

Clone
★ 0

0 watching0 forksRustGPL-3.01.1 MiB218b775Tahinli2 months ago90 commits

lib.rs30 lines, 1019 bytesHistoryRawDownload
1//! Domain model and storage for in.
2//!
3//! The vocabulary — the account, folder, file, share and upload shapes —
4//! compiles everywhere, so the UI and the server speak the same types. The
5//! `server` feature adds the halves that must never reach the browser: the
6//! store, the config, the live announcements and the thumbnailing.
7
8pub mod store;
9
10#[cfg(feature = "server")]
11pub mod config;
12#[cfg(feature = "server")]
13pub mod live;
14#[cfg(feature = "server")]
15pub mod thumbs;
16
17pub use store::{
18 CHUNK_SIZE, CreatedLink, File, Folder, Listing, ShareKind, ShareLink, ShareUser, SharedItem,
19 ThumbState, UPLOAD_TTL_HOURS, UploadSession, UploadState, User,
20};
21
22#[cfg(feature = "server")]
23pub use config::{Config, ConfigError, OidcConfig};
24#[cfg(feature = "server")]
25pub use live::{Change, Topic, next_seq};
26#[cfg(feature = "server")]
27pub use store::{
28 ReconcileOptions, Result, Store, StoreError, TursoStore, hash_link_password, hash_share_token,
29 link_password_matches, link_unlock_proof, reconcile,
30};