#![doc(html_logo_url =
"https://raw.githubusercontent.com/maidsafe/QA/master/Images/maidsafe_logo.png",
html_favicon_url = "http://maidsafe.net/img/favicon.ico",
html_root_url = "http://maidsafe.github.io/safe_core")]
#![forbid(exceeding_bitshifts, mutable_transmutes, no_mangle_const_items,
unknown_crate_types, warnings)]
#![deny(bad_style, deprecated, improper_ctypes, missing_docs,
non_shorthand_field_patterns, overflowing_literals, plugin_as_library,
private_no_mangle_fns, private_no_mangle_statics, 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)]
#![cfg_attr(feature="cargo-clippy", deny(clippy, unicode_not_nfc, wrong_pub_self_convention,
option_unwrap_used))]
#![cfg_attr(feature="cargo-clippy", allow(use_debug, too_many_arguments))]
extern crate base64;
extern crate chrono;
extern crate config_file_handler;
extern crate ffi_utils;
#[cfg(feature = "use-mock-routing")]
extern crate fs2;
extern crate futures;
#[cfg(feature = "use-mock-routing")]
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate lru_cache;
extern crate maidsafe_utilities;
extern crate rand;
extern crate routing;
extern crate serde;
#[macro_use]
extern crate serde_derive;
#[cfg(test)]
extern crate serde_json;
extern crate rust_sodium;
extern crate self_encryption;
extern crate tiny_keccak;
extern crate tokio_core;
#[macro_use]
extern crate unwrap;
pub mod ffi;
pub use ffi::*;
pub use ffi::arrays::*;
pub use ffi::ipc::req::*;
pub use ffi::ipc::resp::*;
pub use ffi::nfs::*;
#[macro_use]
pub mod utils;
pub mod config_handler;
pub mod crypto;
pub mod event_loop;
pub mod immutable_data;
pub mod ipc;
pub mod nfs;
pub mod self_encryption_storage;
mod client;
mod errors;
mod event;
pub use self::client::{Client, ClientKeys, MDataInfo, mdata_info, recovery};
#[cfg(feature = "use-mock-routing")]
pub use self::client::{MockRouting, mock_vault_path};
pub use self::errors::CoreError;
pub use self::event::{CoreEvent, NetworkEvent, NetworkRx, NetworkTx};
pub use self::event_loop::{CoreFuture, CoreMsg, CoreMsgRx, CoreMsgTx};
pub use self::self_encryption_storage::{SelfEncryptionStorage, SelfEncryptionStorageError};
pub use self::utils::FutureExt;
pub const MAIDSAFE_TAG: u64 = 5_483_000;
pub const DIR_TAG: u64 = 15_000;
pub fn app_container_name(app_id: &str) -> String {
format!("apps/{}", app_id)
}