forked from meh/rust-tun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
46 lines (36 loc) · 1.23 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[package]
name = "tun"
version = "0.6.1"
edition = "2021"
authors = ["meh. <[email protected]>"]
license = "WTFPL"
description = "TUN device creation and handling."
repository = "https://github.com/meh/rust-tun"
keywords = ["tun", "network", "tunnel", "bindings"]
[dependencies]
byteorder = { version = "1", optional = true }
bytes = { version = "1", optional = true }
futures-core = { version = "0.3", optional = true }
libc = "0.2"
log = "0.4"
thiserror = "1"
tokio = { version = "1", features = ["net", "macros"], optional = true }
tokio-util = { version = "0.7", features = ["codec"], optional = true }
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
ioctl = { version = "0.8", package = "ioctl-sys" }
[target.'cfg(target_os = "windows")'.dependencies]
wintun = { version = "0.3", features = ["panic_on_unsent_packets"] }
[dev-dependencies]
futures = "0.3"
packet = "0.1"
[features]
async = ["tokio", "tokio-util", "bytes", "byteorder", "futures-core"]
[[example]]
name = "read-async"
required-features = ["async", "tokio/rt-multi-thread"]
[[example]]
name = "read-async-codec"
required-features = ["async", "tokio/rt-multi-thread"]
[[example]]
name = "ping-tun"
required-features = ["async", "tokio/rt-multi-thread"]