-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
135 lines (123 loc) · 3.51 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[package]
name = "rabbit-digger-pro"
version = "0.1.0"
authors = ["spacemeowx2 <[email protected]>"]
edition = "2021"
description = "Just a stub"
license = "MIT OR Apache-2.0"
[dependencies]
anyhow = "1.0.38"
tokio = { version = "1.15.0", features = ["full"] }
tokio-stream = { version = "0.1.6", features = ["net", "sync", "time"] }
clap = { version = "4.3.19", default-features = false, features = [
"std",
"color",
"help",
"usage",
"derive",
"env",
] }
tracing = "0.1.26"
tracing-subscriber = { version = "0.3.7", features = [
"registry",
"env-filter",
"json",
] }
rabbit-digger = { version = "0.1", path = "./rabbit-digger" }
notify-stream = "0.1.1"
futures = "0.3"
pin-project-lite = "0.2.6"
serde_yaml = "0.9.25"
yaml-merge-keys = { version = "0.6.0", features = ["serde_yaml"] }
serde_json = "1.0"
serde = { version = "1.0.119", features = ["derive"] }
rd-interface = { path = "./rd-interface/", version = "0.4" }
rd-std = { path = "./rd-std/", version = "0.1" }
cfg-if = "1.0"
reqwest = { version = "0.11.4", features = ["native-tls-vendored", "socks"] }
parking_lot = "0.12.0"
uuid = { version = "1.3.0", features = ["v4"] }
fs2 = "0.4.3"
async-stream = "0.3.0"
once_cell = "1.7.2"
axum = { version = "0.6.19", features = ["ws"], optional = true }
serde_urlencoded = { version = "0.7.1", optional = true }
tower-http = { version = "0.4.3", features = [
"fs",
"cors",
"trace",
], optional = true }
dirs = { version = "5.0.1" }
json-patch = { version = "1.0.0", optional = true }
url = { version = "2.2.2", optional = true, features = ["serde"] }
hyper = { version = "0.14.12", optional = true, features = ["http1", "client"] }
percent-encoding = { version = "2.1.0", optional = true }
bytes = { version = "1.0", optional = true }
ss = { path = "./protocol/ss", optional = true }
trojan = { path = "./protocol/trojan", optional = true }
rpc = { path = "./protocol/rpc", optional = true }
raw = { path = "./protocol/raw", optional = true }
obfs = { path = "./protocol/obfs", optional = true }
console-subscriber = { version = "0.1.3", optional = true }
chrono = { version = "0.4.19", optional = true }
tracing-serde = { version = "0.1.3", optional = true }
tracing-opentelemetry = { version = "0.19.0", optional = true }
opentelemetry = { version = "0.19.0", features = ["rt-tokio"], optional = true }
opentelemetry-jaeger = { version = "0.18.0", features = [
"rt-tokio",
"reqwest_collector_client",
], optional = true }
rhai = { version = "1.7.0", optional = true, features = [
"no_float",
"no_module",
"no_optimize",
"no_closure",
"serde",
"only_i32",
] }
jemallocator = { version = "0.5.4", optional = true }
mimalloc = { version = "0.1", optional = true }
[dev-dependencies]
rusty-hook = "0.11.0"
[features]
default = ["ss", "trojan", "rpc", "obfs", "api_server", "rhai", "raw"]
api_server = [
"axum",
"serde_urlencoded",
"tower-http",
"json-patch",
"url",
"hyper",
"percent-encoding",
"bytes",
]
console = ["console-subscriber", "tokio/tracing"]
telemetry = [
"tracing-opentelemetry",
"opentelemetry",
"opentelemetry-jaeger",
"chrono",
"tracing-serde",
]
jemalloc = ["jemallocator"]
libpcap = ["raw/libpcap"]
[workspace]
members = [
"rabbit-digger",
"rd-interface",
"rd-std",
"rd-derive",
"protocol/ss",
"protocol/trojan",
"protocol/rpc",
"protocol/raw",
"protocol/obfs",
"ffi",
]
[profile.release]
lto = true
codegen-units = 1
panic = 'abort'
strip = true
[[bin]]
name = "rabbit-digger-pro"