1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#![doc(
html_logo_url = "https://raw.githubusercontent.com/maidsafe/QA/master/Images/maidsafe_logo.png",
html_favicon_url = "http://maidsafe.net/img/favicon.ico",
test(attr(forbid(warnings)))
)]
#![deny(unsafe_code)]
#![warn(
missing_docs,
trivial_casts,
trivial_numeric_casts,
unused_extern_crates,
unused_import_braces,
unused_qualifications,
unused_results
)]
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
#[macro_use]
extern crate unwrap;
pub mod ffi;
pub use ffi::arrays::*;
pub use ffi::ipc::req::*;
pub use ffi::ipc::resp::*;
pub use ffi::nfs::*;
pub use ffi::*;
#[macro_use]
pub mod utils;
pub mod client;
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;
#[cfg(not(feature = "mock-network"))]
mod connection_manager;
mod errors;
mod event;
pub use self::client::{
mdata_info, recovery, test_create_balance, AuthActions, Client, ClientKeys, MDataInfo,
};
#[cfg(feature = "mock-network")]
pub use self::client::{mock_vault_path, MockConnectionManager as ConnectionManager};
pub use self::config_handler::config_dir;
#[cfg(not(feature = "mock-network"))]
pub use self::connection_manager::ConnectionManager;
pub use self::errors::CoreError;
pub use self::event::{NetworkEvent, NetworkRx, NetworkTx};
pub use self::event_loop::{CoreFuture, CoreMsg, CoreMsgRx, CoreMsgTx};
pub use self::self_encryption_storage::{SelfEncryptionStorage, SelfEncryptionStorageError};
pub use self::utils::logging;
pub use self::utils::FutureExt;
pub use quic_p2p::Config as QuicP2pConfig;
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)
}