#![doc(
html_logo_url = "https://raw.githubusercontent.com/maidsafe/QA/master/Images/maidsafe_logo.png",
html_favicon_url = "https://maidsafe.net/img/favicon.ico",
test(attr(forbid(warnings)))
)]
#![forbid(
exceeding_bitshifts,
mutable_transmutes,
no_mangle_const_items,
unknown_crate_types,
warnings
)]
#![deny(
deprecated,
improper_ctypes,
missing_docs,
non_shorthand_field_patterns,
overflowing_literals,
plugin_as_library,
stable_features,
unconditional_recursion,
unknown_lints,
unsafe_code,
unused,
unused_allocation,
unused_attributes,
unused_comparisons,
unused_features,
unused_parens,
while_true
)]
#![warn(
trivial_casts,
trivial_numeric_casts,
unused_extern_crates,
unused_import_braces,
unused_qualifications,
unused_results
)]
#![allow(
box_pointers,
missing_copy_implementations,
missing_debug_implementations,
variant_size_differences,
// FIXME: `needless_pass_by_value` and `clone_on_ref_ptr` required to make no intrusive changes
// on code in the master branch
clippy::clone_on_ref_ptr,
clippy::decimal_literal_representation,
clippy::needless_pass_by_value,
clippy::too_many_arguments
)]
#[macro_use]
extern crate log;
#[allow(clippy::useless_attribute)]
#[macro_use]
extern crate quick_error;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate unwrap;
extern crate byteorder;
extern crate config_file_handler;
extern crate crossbeam;
extern crate get_if_addrs;
extern crate igd;
extern crate maidsafe_utilities;
extern crate mio;
extern crate mio_extras;
extern crate net2;
extern crate rand;
extern crate rust_sodium;
extern crate serde;
extern crate tiny_keccak;
#[cfg(test)]
extern crate serde_json;
#[cfg(test)]
#[macro_use]
mod tests;
mod common;
mod main;
mod nat;
mod service_discovery;
pub use common::{CrustUser, Priority, Uid, MSG_DROP_PRIORITY};
pub use main::{
read_config_file, Config, ConnectionInfoResult, CrustError, Event, PrivConnectionInfo,
PubConnectionInfo, Service,
};
pub type CrustEventSender<UID> = ::maidsafe_utilities::event_sender::MaidSafeObserver<Event<UID>>;
pub type Res<T> = Result<T, CrustError>;