2017-03-10 11:43:32 +00:00
|
|
|
extern crate serde;
|
|
|
|
extern crate rmp_serde;
|
|
|
|
#[macro_use] extern crate serde_utils;
|
|
|
|
extern crate squash_sys as squash;
|
|
|
|
extern crate mmap;
|
|
|
|
extern crate blake2_rfc as blake2;
|
|
|
|
extern crate murmurhash3;
|
|
|
|
extern crate serde_yaml;
|
|
|
|
#[macro_use] extern crate quick_error;
|
2017-03-14 15:07:52 +00:00
|
|
|
extern crate rustc_serialize;
|
2017-03-16 11:33:10 +00:00
|
|
|
extern crate chrono;
|
2017-03-17 06:15:19 +00:00
|
|
|
#[macro_use] extern crate clap;
|
2017-03-17 10:03:07 +00:00
|
|
|
#[macro_use] extern crate log;
|
2017-03-18 14:41:59 +00:00
|
|
|
extern crate byteorder;
|
2017-03-18 16:22:11 +00:00
|
|
|
extern crate sodiumoxide;
|
|
|
|
extern crate ansi_term;
|
2017-03-20 21:24:53 +00:00
|
|
|
extern crate libc;
|
2017-03-18 14:41:59 +00:00
|
|
|
|
2017-03-15 20:53:05 +00:00
|
|
|
pub mod util;
|
2017-03-21 10:08:01 +00:00
|
|
|
pub mod bundledb;
|
2017-03-15 20:53:05 +00:00
|
|
|
pub mod index;
|
2017-03-10 11:43:32 +00:00
|
|
|
mod chunker;
|
|
|
|
mod repository;
|
2017-03-16 19:05:58 +00:00
|
|
|
mod cli;
|
2017-03-21 10:28:11 +00:00
|
|
|
mod prelude;
|
2017-03-16 19:05:58 +00:00
|
|
|
|
2017-03-21 18:18:18 +00:00
|
|
|
// TODO: React on changes in remote bundles
|
|
|
|
// TODO: Lock during backup and vacuum
|
2017-03-18 15:54:43 +00:00
|
|
|
// TODO: Remove backup subtrees
|
2017-03-17 10:46:53 +00:00
|
|
|
// TODO: Recompress & combine bundles
|
2017-03-16 19:05:58 +00:00
|
|
|
// TODO: list --tree
|
2017-03-17 10:46:53 +00:00
|
|
|
// TODO: Import repository from remote folder
|
2017-03-21 18:18:18 +00:00
|
|
|
// TODO: Continue on errors (return summary as error)
|
|
|
|
// TODO: More detailed errors with nicer text
|
2017-03-21 12:44:30 +00:00
|
|
|
// TODO: Allow to use tar files for backup and restore (--tar, http://alexcrichton.com/tar-rs/tar/index.html)
|
2017-03-10 11:43:32 +00:00
|
|
|
|
|
|
|
fn main() {
|
2017-03-16 19:05:58 +00:00
|
|
|
cli::run();
|
2017-03-10 11:43:32 +00:00
|
|
|
}
|