mirror of https://github.com/dswd/zvault
44 lines
893 B
Rust
44 lines
893 B
Rust
#![recursion_limit="128"]
|
|
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;
|
|
extern crate rustc_serialize;
|
|
extern crate chrono;
|
|
#[macro_use] extern crate clap;
|
|
#[macro_use] extern crate log;
|
|
extern crate byteorder;
|
|
extern crate sodiumoxide;
|
|
extern crate ansi_term;
|
|
extern crate filetime;
|
|
extern crate regex;
|
|
#[macro_use] extern crate lazy_static;
|
|
extern crate fuse;
|
|
extern crate rand;
|
|
extern crate time;
|
|
extern crate libc;
|
|
extern crate tar;
|
|
|
|
pub mod util;
|
|
mod bundledb;
|
|
pub mod index;
|
|
mod chunker;
|
|
mod repository;
|
|
mod cli;
|
|
mod prelude;
|
|
mod mount;
|
|
|
|
use std::process::exit;
|
|
|
|
fn main() {
|
|
match cli::run() {
|
|
Ok(()) => exit(0),
|
|
Err(code) => exit(code.code())
|
|
}
|
|
}
|