tun 0.7.10

TUN device creation and handling.
Documentation
[dependencies.bytes]
version = "1"

[dependencies.cfg-if]
version = "1"

[dependencies.futures-core]
optional = true
version = "0.3"

[dependencies.libc]
features = ["extra_traits"]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
features = ["net", "macros", "io-util"]
optional = true
version = "1"

[dependencies.tokio-util]
features = ["codec"]
optional = true
version = "0.7"

[dev-dependencies.ctrlc2]
features = ["tokio", "termination"]
version = "3"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.packet]
version = "0.1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
features = ["rt-multi-thread"]
version = "1"

[[example]]
name = "dev-config"
path = "examples/dev-config.rs"

[[example]]
name = "ping-tun"
path = "examples/ping-tun.rs"
required-features = ["async"]

[[example]]
name = "read"
path = "examples/read.rs"

[[example]]
name = "read-async"
path = "examples/read-async.rs"
required-features = ["async"]

[[example]]
name = "read-async-codec"
path = "examples/read-async-codec.rs"
required-features = ["async"]

[[example]]
name = "split"
path = "examples/split.rs"

[[example]]
name = "write"
path = "examples/write.rs"

[features]
async = ["tokio", "futures-core", "futures", "tokio-util", "wintun-bindings/async"]
default = []

[lib]
crate-type = ["staticlib", "lib"]
name = "tun"
path = "src/lib.rs"

[package]
authors = ["meh. <meh@schizofreni.co>", "@ssrlive"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "TUN device creation and handling."
edition = "2021"
keywords = ["tun", "network", "tunnel", "bindings"]
license = "WTFPL"
name = "tun"
readme = "README.md"
repository = "https://github.com/meh/rust-tun"
rust-version = "1.77"
version = "0.7.10"

[package.metadata.docs.rs]
all-features = true

[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies.ipnet]
version = "2"

[target.'cfg(target_os = "windows")'.dependencies.futures]
optional = true
version = "0.3"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_Security", "Win32_Security_WinTrust", "Win32_Security_Cryptography", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging", "Win32_System_LibraryLoader"]
version = "0.59"

[target.'cfg(target_os = "windows")'.dependencies.wintun-bindings]
features = ["panic_on_unsent_packets", "verify_binary_signature", "async", "enable_inner_logging", "winreg"]
version = "^0.7.7"

[target."cfg(unix)".dependencies.nix]
features = ["ioctl"]
version = "0.29"