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
50
51
#![feature(proc_macro_hygiene, decl_macro, stmt_expr_attributes)]
#[macro_use] extern crate rocket;
extern crate rocket_contrib;
extern crate serde_yaml;
extern crate serde_json;
extern crate reqwest;
extern crate chrono;
extern crate anyhow;
extern crate serde;
extern crate regex;
extern crate paris;
#[cfg(test)]
#[macro_use] extern crate pretty_assertions;
mod yaml;
pub mod helpers;
pub mod dropbox;
pub mod rubric;
pub mod report;
mod macros;
pub use self::rubric::Rubric;
pub use self::dropbox::{open, Submission, TestData};
pub type Result<T> = anyhow::Result<T>;
pub type Error = anyhow::Error;
const TIMESTAMP_FORMAT: &'static str = "%F %a %T %:z";
const HR_TIMESTAMP_FORMAT: &'static str = "%A %R%p %v";