# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "tun-rs" version = "1.4.7" authors = ["xmh0511, vnt-dev"] description = "A cross-platform infrastructure of Tun/Tap device creation and handling." readme = "README.md" keywords = [ "tun", "tap", "network", "tunnel", "cross-platform", ] license = "Apache-2.0" repository = "https://github.com/xmh0511/tun-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] crate-type = [ "staticlib", "cdylib", "lib", ] [[example]] name = "read-async-tokio" required-features = ["async_tokio"] [[example]] name = "read-async-std" required-features = ["async_std"] [[example]] name = "ping-tun-tokio" required-features = ["async_tokio"] [[example]] name = "ping-tun-async-std" required-features = ["async_std"] [[example]] name = "ping-tap-tokio" required-features = ["async_tokio"] [[example]] name = "ping-tap-async-std" required-features = ["async_std"] [[example]] name = "ping-tun-offload-tokio" required-features = ["async_tokio"] [dependencies.async-io] version = "2.3" optional = true [dependencies.bitflags] version = "2.6.0" [dependencies.blocking] version = "1.6" optional = true [dependencies.byteorder] version = "1.5.0" [dependencies.bytes] version = "1" [dependencies.cfg-if] version = "1" [dependencies.ipnet] version = "2" [dependencies.libc] version = "0.2" features = ["extra_traits"] [dependencies.log] version = "0.4" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = [ "net", "macros", "io-util", "rt", ] optional = true [dev-dependencies.async-ctrlc] version = "1.2.0" [dev-dependencies.async-std] version = "1" features = [ "attributes", "unstable", ] [dev-dependencies.ctrlc2] version = "3" features = [ "tokio", "termination", ] [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.futures] version = "0.3" [dev-dependencies.packet] version = "0.1" [dev-dependencies.pnet_packet] version = "0.35.0" [dev-dependencies.serde_json] version = "1" [dev-dependencies.tokio] version = "1" features = [ "rt-multi-thread", "time", ] [features] async = ["async_tokio"] async_std = [ "blocking", "async-io", ] async_tokio = [ "blocking", "tokio", ] default = ["wintun-dns"] experimental = [] wintun-dns = [] [target."cfg(any(target_os = \"linux\", target_os = \"freebsd\",target_os = \"windows\"))".dependencies.mac_address] version = "1.1.7" [target."cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"android\", target_os=\"freebsd\"))".dependencies.nix] version = "0.29" features = ["ioctl"] [target."cfg(target_os = \"windows\")".dependencies.c2rust-bitfields] version = "0.19" [target."cfg(target_os = \"windows\")".dependencies.encoding_rs] version = "0.8.34" [target."cfg(target_os = \"windows\")".dependencies.libloading] version = "0.8" [target."cfg(target_os = \"windows\")".dependencies.scopeguard] version = "1.2.0" [target."cfg(target_os = \"windows\")".dependencies.windows-sys] version = "0.59" features = [ "Win32_Devices_DeviceAndDriverInstallation", "Win32_Storage_FileSystem", "Win32_System_Registry", "Win32_Networking_WinSock", "Win32_NetworkManagement_Ndis", "Win32_Foundation", "Win32_Security", "Win32_Security_WinTrust", "Win32_Security_Cryptography", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging", "Win32_System_LibraryLoader", "Win32_NetworkManagement_IpHelper", ] [target."cfg(target_os = \"windows\")".dependencies.winreg] version = "0.52.0" [target."cfg(target_os = \"windows\")".dependencies.wintun] version = "0.7" features = ["panic_on_unsent_packets"] package = "wintun-bindings"