-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
51 lines (45 loc) · 1.35 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 = "trojan-x"
version = "0.0.5"
edition = "2021"
license = "MPL-2.0"
authors = ["SSPanel-UIM Team <[email protected]>"]
[dependencies]
bytes = "1.6"
tokio = { version = "1.26", features = ["macros", "net", "io-util", "sync", "rt"] }
tokio-rustls = { version = "0.23", default-features = false, features = ["tls12"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = { version = "0.10", default-features = false }
simple_logger = { version = "4.3", default-features = false, features = ["timestamps"] }
log = { version = "0.4", features = ["serde", "release_max_level_debug"] }
rustls-pemfile = "1.0"
# optional
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls-native-roots"], optional = true }
form_urlencoded = { version = "1.2", optional = true }
rustls-native-certs = { version = "0.6", optional = true }
[target.'cfg(any(target_os = "linux"))'.dependencies]
libc = { version = "0.2", optional = true }
[features]
trojan = [
"rustls-native-certs"
]
sspanel = [
"libc",
"reqwest",
"form_urlencoded",
"tokio/time",
"tokio/signal",
"tokio/rt-multi-thread"
]
[profile.release]
opt-level = 3
strip = true
lto = true
codegen-units = 1
panic = "abort"
incremental = false
[[bin]]
name = "trojan-sspanel"
path = "bin/trojan-sspanel.rs"
required-features = ["sspanel"]