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
#![feature(generators, generator_trait)]

extern crate bs58;
extern crate byteorder;
extern crate clear_on_drop;
extern crate crc8;
extern crate ed25519_dalek;
extern crate rand;
extern crate sha2;
extern crate snow;
extern crate x25519_dalek;
#[macro_use]
extern crate log;
extern crate prost;
#[macro_use]
extern crate prost_derive;
extern crate bytes;
extern crate dirs;
extern crate hpack;
extern crate mio;
extern crate osaka;
extern crate osaka_dns;
extern crate serde;
extern crate toml;
#[macro_use]
extern crate serde_derive;
extern crate libc;

extern crate axon;
extern crate mio_extras;
extern crate mtdparts;
extern crate nix;
extern crate num_cpus;
extern crate wait_timeout;
extern crate which;

#[macro_use]
#[cfg(target_arch = "wasm32")]
extern crate wasm_bindgen;

pub mod certificate;
pub mod channel;
pub mod clock;
pub mod config;
pub mod dns;
pub mod endpoint;
pub mod error;
pub mod headers;
pub mod identity;
pub mod local_addrs;
pub mod noise;
pub mod packet;
#[cfg(any(target_os = "linux", target_os = "macos", target_os = "android",))]
pub mod publisher;
pub mod recovery;
pub mod replay;
pub mod stream;
pub mod subscriber;
pub mod util;
pub mod conduit;

pub use error::Error;
pub use identity::Identity;
pub use identity::Secret;

pub mod proto {
    include!(concat!(env!("OUT_DIR"), "/carrier.broker.v1.rs"));
    include!(concat!(env!("OUT_DIR"), "/carrier.certificate.v1.rs"));
    include!(concat!(env!("OUT_DIR"), "/carrier.sysinfo.v1.rs"));
}