-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
48 lines (44 loc) · 1.32 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
[package]
name = "proxerver"
version = "0.1.2"
edition = "2021"
authors = ["doroved"]
description = "User Friendly HTTP and HTTPS (HTTP over TLS) proxy server."
readme = "README.md"
repository = "https://github.com/doroved/proxerver"
license = "MIT OR Apache-2.0"
keywords = ["proxy", "proxy-server", "http", "https", "http-over-tls"]
categories = ["command-line-utilities", "network-programming"]
[dependencies]
hyper = { version = "0.14", features = [
"client",
"server",
"http1",
"runtime",
] }
tokio = { version = "1.41.0", features = [
"net",
"rt-multi-thread",
"macros",
"io-util",
] }
base64 = "0.22.1"
wildmatch = "2.3.0"
daemonize = "0.5.0"
rand = "0.8.5"
futures-util = "0.3.30"
clap = { version = "4.5.20", features = ["derive"] }
sha2 = "0.10.8"
# http over tls. Если обновить 3 крейта ниже, то все сломается в https.rs
rustls = "0.20"
tokio-rustls = "0.23"
hyper-tls = "0.5"
rustls-pemfile = "2.2.0"
rustls-pki-types = "1.9.0"
chrono = "0.4.38"
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size s = 1.9 mb (aarch64) | z = 1.8 mb (aarch64)
strip = true # Remove debug symbols