-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (57 loc) · 1.53 KB
/
Cargo.toml
File metadata and controls
76 lines (57 loc) · 1.53 KB
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
[package]
name = "rust-forward-proxy"
version = "0.1.0"
edition = "2021"
[dependencies]
# Async runtime
tokio = { version = "1.0", features = ["full"] }
# HTTP server and client
hyper = { version = "0.14", features = ["full", "server", "client"] }
# Socket configuration (for SO_REUSEPORT support)
socket2 = "0.5"
# Additional support for proxying
futures = "0.3"
bytes = "1.0"
# Serialization for logging
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
# SSL/TLS support
rustls = { version = "0.21", features = ["dangerous_configuration"] }
tokio-rustls = "0.24"
hyper-rustls = "0.24"
# URL parsing
url = "2.4"
# Date/time handling
chrono = { version = "0.4.11", features = ["serde"] }
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Logging
log = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-log = "0.1" # Bridge log events to tracing
tracing-appender = "0.2" # File appender for tracing
# Optional: For form data parsing
form_urlencoded = "1.2"
# Redis support
redis = { version = "0.21", features = ["tokio-comp"], optional = true }
# Certificate generation
rcgen = "0.10"
base64 = "0.21"
# System certificate loading
rustls-native-certs = "0.7"
rustls-pemfile = "1.0"
# X.509 certificate parsing
x509-parser = "0.16"
# Temporary directory for testing
tempfile = "3.5"
# Serialization for certificate caching
bincode = "1.3"
[features]
default = ["redis-support"]
redis-support = ["redis"]
[[bin]]
name = "rust-forward-proxy"
path = "src/main.rs"