webapp/
lib.rs

1//! The core library
2#![deny(missing_docs)]
3#![allow(unknown_lints, proc_macro_derive_resolution_fallback)]
4
5#[cfg(feature = "backend")]
6#[macro_use]
7extern crate diesel;
8
9pub mod config;
10pub mod protocol;
11#[cfg(feature = "backend")]
12#[allow(missing_docs)]
13pub mod schema;
14
15/// The global config file name
16pub const CONFIG_FILENAME: &str = "Config.toml";
17
18macro_rules! apis {
19    ($($name:ident => $content:expr,)*) => (
20        $(#[allow(missing_docs)] pub const $name: &str = $content;)*
21    )
22}
23
24apis! {
25    API_URL_LOGIN_CREDENTIALS => "login/credentials",
26    API_URL_LOGIN_SESSION => "login/session",
27    API_URL_LOGOUT => "logout",
28}