WireTun

github crates.io docs.rs build status dependency status

This library provides a cross-platform, asynchronous (with Tokio) WireGuard implementation.

WARNING: This library is still in early development and is not ready for production use.

toml [dependencies] wiretun = { version = "0.1", features = ["uapi"] }

Example

```rust use wiretun::{Cidr, Device, DeviceConfig, PeerConfig, uapi};

[tokio::main]

async fn main() -> Result<(), Box> { let cfg = DeviceConfig::default() .listenport(40001); let device = Device::native("utun88", cfg).await?; uapi::bindand_handle(device.control()).await?; Ok(()) } ```

More examples can be found in the examples directory.

Minimum supported Rust version (MSRV)

1.66.1

License

This project is licensed under the Apache 2.0 license.