forked from xutianyi1999/fubuki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
88 lines (75 loc) · 2.62 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[package]
name = "fubuki"
version = "0.5.7"
authors = ["xty <xutianyi1999@live.com>"]
edition = "2021"
[lib]
# differentiate from bin
name = "fubukil"
crate-type = ["lib", "staticlib", "cdylib"]
path = "src/lib.rs"
[[bin]]
name = "fubuki"
path = "src/main.rs"
[dependencies]
clap = { version = "4", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
log = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = "0.4"
rand = "0.8"
socket2 = "0.5"
parking_lot = "0.12"
anyhow = "1"
ahash = "0.8"
futures-util = "0.3"
ipnet = { version = "2", features = ["serde"] }
arc-swap = "1"
human-panic = "2"
hyper = { version = "1", features = ["server", "client", "http1"] }
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["tokio"] }
bincode = { version = "2.0.0-rc.3", features = ["serde"] }
prettytable-rs = "0.10"
scopeguard = "1"
arrayvec = { version = "0.7", features = ["serde"] }
static-files = { version = "0.2", optional = true }
gethostname = "0.4"
flume = { version = "0.11", default-features = false, features = ["async", "spin"] }
sha2 = "0.10"
digest = "0.10"
crossbeam-utils = "0.8"
libloading = "0.8"
byte-unit = { version = "5", features = ["serde"] }
linear-map = { git = "https://github.com/contain-rs/linear-map.git" }
mimalloc = { version = "*", default-features = false, optional = true }
[target.'cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))'.dependencies]
net-route = { git = "https://github.com/johnyburd/net-route.git" }
netconfig = { git = "https://github.com/xutianyi1999/netconfig.git" }
hostsfile = { git = "https://github.com/tonarino/innernet.git" }
klask = { git = "https://github.com/xosxos/klask.git", optional = true }
log4rs = "1"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.13"
[target.'cfg(target_os = "macos")'.dependencies]
tempfile = "3"
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "android"))'.dependencies]
tun = { git = "https://github.com/xutianyi1999/rust-tun.git", features = ["async"] }
[target.'cfg(target_os = "windows")'.dependencies]
simple_wintun = { git = "https://github.com/xutianyi1999/SimpleWintun.git", features = ["async"] }
windows = { version = "0.56", features = ["Win32_Networking_WinSock"] }
[target.'cfg(target_os = "windows")'.build-dependencies]
winres = "0.1"
[build-dependencies]
static-files = { version = "0.2", optional = true }
[patch.crates-io]
advmac = { git = "https://github.com/xutianyi1999/advmac.git" }
[features]
default = ["mimalloc"]
web = ["static-files"]
gui = ["klask"]
hash-routing-table = []
[profile.release]
lto = true
codegen-units = 1