aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-23 12:08:35 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-23 12:08:35 +0200
commitee3599d5507ceee23ef3382dbda9de8e73c54a00 (patch)
treed681a3f8a5a2d5e7bea779acecd1fc0798285d9e /src/main.rs
parentWork on platform specific code (Linux) (diff)
downloadwireguard-rs-ee3599d5507ceee23ef3382dbda9de8e73c54a00.tar.xz
wireguard-rs-ee3599d5507ceee23ef3382dbda9de8e73c54a00.zip
Moved IO traits into platform module
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 4dac3cd..5aaeb25 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,8 +10,23 @@ mod configuration;
mod platform;
mod wireguard;
-use platform::PlatformTun;
+mod tests;
+
+use platform::tun;
+
+use configuration::WireguardConfig;
fn main() {
- let (readers, writer, mtu) = platform::TunInstance::create("test").unwrap();
+ /*
+ 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);
}
+*/