# 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" rust-version = "1.75" name = "tun-easytier" version = "1.1.1" authors = [ "meh. ", "@ssrlive", "sijie.sun ", ] description = "TUN device creation and handling." readme = "README.md" keywords = [ "tun", "network", "tunnel", "bindings", ] license = "WTFPL" repository = "https://github.com/EasyTier/rust-tun" [package.metadata.docs.rs] features = ["async"] [lib] crate-type = [ "staticlib", "cdylib", "lib", ] [[example]] name = "read-async" required-features = ["async"] [[example]] name = "read-async-codec" required-features = ["async"] [[example]] name = "ping-tun" required-features = ["async"] [dependencies.bytes] version = "1" [dependencies.cfg-if] version = "1" [dependencies.futures-core] version = "0.3" optional = true [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", ] optional = true [dependencies.tokio-util] version = "0.7" features = ["codec"] optional = true [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.serde_json] version = "1" [dev-dependencies.tokio] version = "1" features = ["rt-multi-thread"] [features] async = [ "tokio", "futures-core", "tokio-util", ] default = ["wintun-dns"] wintun-dns = [] [target."cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"android\", target_os=\"freebsd\"))".dependencies.nix] version = "0.29" features = ["ioctl"] [target."cfg(any(target_os = \"macos\", target_os = \"freebsd\"))".dependencies.ipnet] version = "2" [target."cfg(target_os = \"windows\")".dependencies.libloading] version = "0.8" [target."cfg(target_os = \"windows\")".dependencies.windows-sys] version = "0.59" features = [ "Win32_Foundation", "Win32_Security", "Win32_Security_WinTrust", "Win32_Security_Cryptography", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging", "Win32_System_LibraryLoader", ] [target."cfg(target_os = \"windows\")".dependencies.wintun] version = "0.5" features = ["panic_on_unsent_packets"]