Begin drafting cross-platform interface

This commit is contained in:
Mathias Hall-Andersen
2019-08-16 22:00:48 +02:00
parent 726163b7f1
commit 5aeea9b619
8 changed files with 77 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
#![feature(test)]
mod handshake;
mod platform;
mod router;
mod types;
@@ -13,7 +14,7 @@ fn main() {
// choose optimal crypto implementations for platform
sodiumoxide::init().unwrap();
let mut rdev = router::Device::new();
let mut rdev = router::Device::new(8);
let pref = rdev.add();
}