Cargo Features

[dependencies]
tun-rs = { version = "1.4.5", default-features = false, features = ["async", "async_tokio", "async_std", "wintun-dns", "experimental"] }
default = wintun-dns

The wintun-dns feature is set by default whenever tun-rs is added without default-features = false somewhere in the dependency tree.

async = async_tokio
async_tokio async? = blocking, tokio

Affects async_device::AsyncFd, tun-rs::r#async

async_std = async-io, blocking

Affects async_device::AsyncFd, tun-rs::r#async

wintun-dns default
experimental

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

blocking async_std? async_tokio?
tokio async_tokio?
async-io async_std?