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
extern crate multipart;
extern crate rand;
extern crate reqwest;
extern crate time;
#[cfg(test)]
#[macro_use]
extern crate matches;
pub mod backup;
mod crypto;
pub mod database;
pub mod error;
mod openssl_extra;
pub mod sync;
pub const PARANOID_BACKUPS: bool = true;
#[macro_export]
#[cfg(debug_assertions)]
macro_rules! log(
($($arg:tt)*) => { {
use std::io::prelude::*;
let r = writeln!(&mut ::std::io::stderr(), $($arg)*);
r.expect("failed printing to stderr");
} }
);
#[macro_export]
#[cfg(not(debug_assertions))]
macro_rules! log(
($($arg:tt)*) => { {
} }
);