diff options
Diffstat (limited to 'src/wireguard/mod.rs')
-rw-r--r-- | src/wireguard/mod.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/wireguard/mod.rs b/src/wireguard/mod.rs new file mode 100644 index 0000000..9417e57 --- /dev/null +++ b/src/wireguard/mod.rs @@ -0,0 +1,23 @@ +mod wireguard; +// mod config; +mod constants; +mod timers; + +mod handshake; +mod router; +mod types; + +#[cfg(test)] +mod tests; + +/// The WireGuard sub-module contains a pure, configurable implementation of WireGuard. +/// The implementation is generic over: +/// +/// - TUN type, specifying how packets are received on the interface side: a reader/writer and MTU reporting interface. +/// - Bind type, specifying how WireGuard messages are sent/received from the internet and what constitutes an "endpoint" + +pub use wireguard::{Wireguard, Peer}; + +pub use types::bind; +pub use types::tun; +pub use types::Endpoint;
\ No newline at end of file |