-
Notifications
You must be signed in to change notification settings - Fork 19
/
Cargo.toml
51 lines (44 loc) · 1.09 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
47
48
49
50
51
[package]
name = "ap_kcp"
version = "0.1.1"
authors = ["black-binary <blackbinary@qq.com>"]
edition = "2018"
license = "MIT"
description = "AP-KCP Protocol Library"
[dependencies]
bytes = "0.6"
log = "0.4"
futures = "0.3"
smol = "1.2"
async-trait = "0.1"
rand = "0.7"
env_logger = "0.8"
bitflags = "1.2"
fast-async-mutex = "0.6"
num_cpus = {version = "1.13", optional = true}
serde = {version = "1.0", optional = true}
serde_derive = {version = "1.0", optional = true}
toml = {version = "0.5", optional = true}
ring = {version = "0.16", optional = true}
clap = {version = "2.33", optional = true}
[profile.release]
lto = "fat"
codegen-units = 4
[dev-dependencies]
rand = "0.7"
env_logger = "0.8"
criterion = "0.3"
pprof = { version = "0.3", features = ["flamegraph"] }
toml = "0.5"
[features]
serde_support = ["serde", "serde_derive"]
crypto_support = ["ring"]
build_binary = ["clap", "toml", "crypto_support", "num_cpus", "serde_support"]
full = ["serde_support", "crypto_support"]
[[bin]]
name = "ap-kcp-tun"
path = "src/tun.rs"
required-features = ["build_binary"]
[[bench]]
name = "bench"
harness = false