aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-20 20:05:20 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-20 20:05:20 -0700
commit1940f7b082bfd958ae9e4155f62afbd8f0100fd8 (patch)
treecbff21956497120a1a655a515f9d098d7ec46ebd /src/lib.rs
parent0cd766546ae13d4d543c3da7f5f02d2720a8e2f7 (diff)
downloadgeniza-1940f7b082bfd958ae9e4155f62afbd8f0100fd8.tar.gz
geniza-1940f7b082bfd958ae9e4155f62afbd8f0100fd8.zip
crude WIP net client
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0be23a1..8a515d7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,6 +13,8 @@
#[macro_use]
extern crate error_chain;
+extern crate log;
+extern crate env_logger;
extern crate integer_encoding;
extern crate crypto;
extern crate rand;
@@ -23,10 +25,12 @@ extern crate tempdir;
#[allow(unused_doc_comment)]
mod errors {
+
// Create the Error, ErrorKind, ResultExt, and Result types
error_chain! {
foreign_links { Fmt(::std::fmt::Error);
- Io(::std::io::Error) #[cfg(unix)]; }
+ Io(::std::io::Error) #[cfg(unix)];
+ Protobuf(::protobuf::ProtobufError); }
}
}
@@ -35,8 +39,10 @@ pub use errors::*;
// Organize code internally (files, modules), but pull it all into a flat namespace to export.
mod sleep;
+pub use sleep::*;
mod register;
+pub use register::*;
+mod sync;
+pub use sync::*;
pub mod network_proto;
pub mod drive_proto;
-pub use sleep::*;
-pub use register::*;