sos_server/
lib.rs

1#![deny(missing_docs)]
2#![forbid(unsafe_code)]
3#![cfg_attr(all(doc, CHANNEL_NIGHTLY), feature(doc_auto_cfg))]
4
5//! Server for the [Save Our Secrets](https://saveoursecrets.com)
6//! sync protocol.
7//!
8//! If the `listen` feature is enabled the server is compiled
9//! with support for sending change notifications over
10//! a websocket connection.
11
12mod api_docs;
13mod authenticate;
14mod backend;
15mod config;
16mod error;
17mod handlers;
18mod server;
19
20pub use error::Error;
21
22/// Result type for the server module.
23#[doc(hidden)]
24pub type Result<T> = std::result::Result<T, error::Error>;
25
26pub use backend::Backend;
27pub use config::*;
28pub use server::{Server, ServerBackend, ServerState, ServerTransfer, State};