aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: 14e1f08ea023fdef3a8a3b0b0a6196ae03fee437 (plain) (blame)
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
#![allow(unknown_lints)]
#![warn(clippy)]
#![feature(ip_constructors)]
#![feature(try_trait)]
#![feature(try_from)]
#![feature(test)]

#![cfg_attr(feature = "cargo-clippy", allow(doc_markdown))]
#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
#![cfg_attr(feature = "cargo-clippy", allow(decimal_literal_representation))]

#[macro_use] extern crate derive_deref;
#[macro_use] extern crate failure;
#[macro_use] extern crate futures;
#[macro_use] extern crate lazy_static;
#[macro_use] extern crate log;
#[macro_use] extern crate tokio_core;

extern crate base64;
extern crate blake2_rfc;
extern crate byteorder;
extern crate bytes;
extern crate chacha20_poly1305_aead;
extern crate futures_cpupool;
extern crate hex;
extern crate libc;
extern crate mio;
extern crate nix;
extern crate notify;
extern crate rand;
extern crate rips_packets;
extern crate snow;
extern crate socket2;
extern crate subtle;
extern crate test;
extern crate tokio_io;
extern crate tokio_uds;
extern crate tokio_utun;
extern crate tokio_signal;
extern crate tokio_timer;
extern crate treebitmap;
extern crate x25519_dalek;

pub mod interface;
pub mod peer;
pub mod noise;
pub mod timestamp;
pub mod types;

mod anti_replay;
mod consts;
mod cookie;
mod error;
mod ip_packet;
mod message;
mod ratelimiter;
mod router;
mod timer;
mod udp;
mod xchacha20poly1305;