forked from meh/rust-tun
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathCargo.toml
44 lines (34 loc) · 1.15 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
[package]
name = "tun"
version = "0.5.1"
edition = "2018"
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]
libc = "0.2"
thiserror = "1"
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "ios"))'.dependencies]
mio = { version = "0.6", optional = true }
tokio = { version = "0.2", features = ["full"], optional = true }
tokio-util = { version = "0.3", features = ["codec"], optional = true }
bytes = { version = "0.5", optional = true }
byteorder = { version = "1.3", optional = true }
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
ioctl = { version = "0.6", package = "ioctl-sys" }
[dev-dependencies]
packet = "0.1"
futures = "0.3.1"
[features]
async = ["tokio", "tokio-util", "mio", "bytes", "byteorder"]
[[example]]
name = "read-async"
required-features = [ "async" ]
[[example]]
name = "read-async-codec"
required-features = [ "async" ]
[[example]]
name = "ping-tun"
required-features = [ "async" ]