# 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 = "tun2" version = "4.0.0" authors = [ "meh. ", "@ssrlive", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "TUN device creation and handling." readme = "README.md" keywords = [ "tun", "network", "tunnel", "bindings", ] license = "WTFPL" repository = "https://github.com/ssrlive/rust-tun" [package.metadata.docs.rs] features = ["async"] [lib] name = "tun2" crate-type = [ "staticlib", "cdylib", "lib", ] path = "src/lib.rs" [[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" [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", "futures", "tokio-util", "wintun-bindings/async", ] default = [] [target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies.ipnet] version = "2" [target.'cfg(target_os = "windows")'.dependencies.futures] version = "0.3" optional = true [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-bindings] version = "^0.7.7" features = [ "panic_on_unsent_packets", "verify_binary_signature", "async", ] [target."cfg(unix)".dependencies.nix] version = "0.29" features = ["ioctl"]