aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-12-05 23:18:19 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-12-05 23:18:19 -0800
commitf3c0199e4c59e357dccbc289c687155905fc28e4 (patch)
treecbf9af4dff1e43a791cb03d9a4294f26825b191c /src/lib.rs
parent5e844aca2081ef6d2e9615eea24b8a9d56f41c19 (diff)
downloadgeniza-f3c0199e4c59e357dccbc289c687155905fc28e4.tar.gz
geniza-f3c0199e4c59e357dccbc289c687155905fc28e4.zip
basic centralized DNS discovery
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 10139d3..bc62d78 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -24,6 +24,8 @@ extern crate protobuf;
extern crate rand;
extern crate sodiumoxide;
extern crate bit_field;
+extern crate resolve;
+extern crate data_encoding;
#[cfg(test)]
extern crate tempdir;
@@ -35,6 +37,7 @@ mod errors {
error_chain! {
foreign_links { Fmt(::std::fmt::Error);
Io(::std::io::Error) #[cfg(unix)];
+ AddrParseError(::std::net::AddrParseError);
Protobuf(::protobuf::ProtobufError); }
}
}
@@ -55,6 +58,8 @@ pub mod network_msgs;
pub mod metadata_msgs;
mod node;
pub use node::*;
+mod discovery;
+pub use discovery::*;
// Shared functions
use crypto::digest::Digest;