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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#![warn(anonymous_parameters)]
#![warn(bare_trait_objects)]
#![warn(elided_lifetimes_in_paths)]
#![warn(missing_debug_implementations)]
#![warn(single_use_lifetimes)]
#![warn(trivial_casts)]
#![warn(unreachable_pub)]
#![forbid(unsafe_code)]
#![warn(unused_extern_crates)]
#![warn(unused_import_braces)]
#![warn(unused_qualifications)]
#![warn(unused_results)]
// #![warn(variant_size_differences)]
#![feature(option_expect_none)]
#![feature(fn_traits)]
#![feature(unboxed_closures)]

#[macro_use]
extern crate error_chain;

pub mod result {
  error_chain! {}
}

pub mod build_info;
pub mod cfg;
pub mod ctx;
pub mod database {
  pub mod conn;
  pub mod results;
}
pub mod field_type;
pub mod files;
pub mod messages {
  pub mod handler;
  pub mod req;
  pub mod rsp;
}
pub mod profile;
pub mod project {
  pub mod model;
  pub mod service;
}

pub use crate::project::model::Project;
pub use crate::result::{Error, Result, ResultExt};

#[cfg(test)]
pub mod tests;