summaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: 5aaeb259e2f20a60830c40db09354b2c9547d1a8 (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
#![feature(test)]
#![allow(dead_code)]

extern crate jemallocator;

#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

mod configuration;
mod platform;
mod wireguard;

mod tests;

use platform::tun;

use configuration::WireguardConfig;

fn main() {
    /*
    let (mut readers, writer, mtu) = platform::TunInstance::create("test").unwrap();
    let wg = wireguard::Wireguard::new(readers, writer, mtu);
    */
}

/*
fn test_wg_configuration() {
    let (mut readers, writer, mtu) = platform::dummy::

    let wg = wireguard::Wireguard::new(readers, writer, mtu);
}
*/