1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! Panorama
//! ===

#![deny(unsafe_code)]
#![deny(missing_docs)]
// TODO: get rid of this before any kind of public release
#![allow(unused_imports, unused_variables)]

#[macro_use]
extern crate anyhow;
#[macro_use]
extern crate async_trait;
#[macro_use]
extern crate format_bytes;
#[macro_use]
extern crate serde;
#[macro_use]
extern crate sqlx;
#[macro_use]
extern crate log;

pub mod config;
pub mod mail;
pub mod script;
pub mod search;
pub mod ui;

/// Consumes any error and dumps it to the logger.
pub fn report_err(err: anyhow::Error) {
    error!("error: {}", err);
}