zvault/src/main.rs

63 lines
1.2 KiB
Rust
Raw Normal View History

2017-03-22 08:19:16 +00:00
#![recursion_limit="128"]
2017-04-04 11:59:57 +00:00
#![allow(unknown_lints, float_cmp)]
2017-07-03 09:48:25 +00:00
#![cfg_attr(feature = "bench", feature(test))]
2017-07-21 09:21:59 +00:00
#[cfg(feature = "bench")]
extern crate test;
2017-03-10 11:43:32 +00:00
extern crate serde;
2017-04-27 11:35:48 +00:00
extern crate serde_bytes;
2017-03-10 11:43:32 +00:00
extern crate rmp_serde;
2017-07-21 09:21:59 +00:00
#[macro_use]
extern crate serde_utils;
2017-03-10 11:43:32 +00:00
extern crate squash_sys as squash;
extern crate blake2_rfc as blake2;
extern crate murmurhash3;
extern crate serde_yaml;
2017-07-21 09:21:59 +00:00
#[macro_use]
extern crate quick_error;
2017-03-16 11:33:10 +00:00
extern crate chrono;
2017-07-21 09:21:59 +00:00
#[macro_use]
extern crate clap;
#[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;
2017-05-08 13:11:07 +00:00
extern crate libsodium_sys;
2017-03-18 16:22:11 +00:00
extern crate ansi_term;
2017-03-22 18:58:56 +00:00
extern crate filetime;
2017-03-24 10:00:20 +00:00
extern crate regex;
2017-07-21 09:21:59 +00:00
#[macro_use]
extern crate lazy_static;
2017-03-26 09:34:16 +00:00
extern crate fuse;
2017-04-02 18:45:35 +00:00
extern crate rand;
2017-03-26 09:34:16 +00:00
extern crate time;
2017-04-04 11:59:57 +00:00
extern crate xattr;
2017-04-10 06:53:55 +00:00
extern crate crossbeam;
2017-04-11 06:49:45 +00:00
extern crate pbr;
extern crate users;
2017-03-20 21:24:53 +00:00
extern crate libc;
2017-04-03 13:18:06 +00:00
extern crate tar;
2018-02-21 21:49:21 +00:00
#[macro_use]
extern crate runtime_fmt;
2018-02-24 12:19:51 +00:00
extern crate locale_config;
2018-02-24 22:28:18 +00:00
extern crate mmap;
2017-03-18 14:41:59 +00:00
2018-02-21 21:49:21 +00:00
#[macro_use] mod translation;
2017-03-15 20:53:05 +00:00
pub mod util;
2017-03-23 08:31:23 +00:00
mod bundledb;
2017-03-10 11:43:32 +00:00
mod repository;
2017-03-16 19:05:58 +00:00
mod cli;
2017-03-21 10:28:11 +00:00
mod prelude;
2017-03-26 09:34:16 +00:00
mod mount;
mod chunker;
2018-02-24 22:28:18 +00:00
mod chunking;
mod index;
2017-03-16 19:05:58 +00:00
2017-04-03 13:18:06 +00:00
use std::process::exit;
2017-03-10 11:43:32 +00:00
fn main() {
2017-04-03 13:18:06 +00:00
match cli::run() {
Ok(()) => exit(0),
2017-07-21 09:21:59 +00:00
Err(code) => exit(code.code()),
2017-04-03 13:18:06 +00:00
}
2017-03-10 11:43:32 +00:00
}