-
Notifications
You must be signed in to change notification settings - Fork 19
/
Cargo.toml
103 lines (87 loc) · 3.52 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[package]
name = "fubuki"
version = "0.5.12"
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 = { version = "0.8", features = ["small_rng"] }
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.5"
flume = { version = "0.11", default-features = false, features = ["async", "spin"] }
blake3 = { version = "1", features = ["pure"] }
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 }
netstack-lwip = { git = "https://github.com/xutianyi1999/netstack-lwip.git", optional = true }
pathfinding = "4"
kcp = { git = "https://github.com/Matrix-Zhang/kcp.git", features = ["tokio"] }
stackfuture = "0.3"
[target.'cfg(not(target_os = "android"))'.dependencies]
log4rs = { version = "1", default-features = false, features = ["console_appender"] }
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.14"
[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/xutianyi1999/klask.git", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
tempfile = "3"
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "android", target_os = "ios"))'.dependencies]
tun = { git = "https://github.com/xutianyi1999/rust-tun.git", features = ["async"] }
self_update = { version = "0.41", default-features = false, features = ["archive-tar", "compression-flate2", "rustls"] }
[target.'cfg(target_os = "windows")'.dependencies]
simple_wintun = { git = "https://github.com/xutianyi1999/SimpleWintun.git", features = ["async"] }
windows = { version = "0.58", features = ["Win32_Networking_WinSock"] }
self_update = { version = "0.41", default-features = false, features = ["archive-zip", "compression-zip-deflate", "rustls"] }
[target.'cfg(target_os = "ios")'.dependencies]
libc = "0.2"
[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" }
# todo fix link problem of windows.0.48.5.lib in win7-msvc toolchain
self-replace = {git = "https://github.com/xutianyi1999/self-replace.git" }
[features]
default = ["mimalloc"]
web = ["static-files"]
gui = ["klask"]
hash-routing-table = []
cross-nat = ["netstack-lwip"]
ffi-export = []
[profile.release]
lto = true
codegen-units = 1