-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (63 loc) · 1.92 KB
/
Cargo.toml
File metadata and controls
77 lines (63 loc) · 1.92 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
77
[package]
authors = ["Bastian Gruber <foreach@me.com>"]
version = "1.0.1"
edition = "2024"
name = "ohttp-gateway"
categories = ["web-programming", "web-programming::http-server"]
description = "A OHTTP Gateway server, meant to run between a OHTTP Relay and a target web service."
documentation = "https://docs.rs/ohttp-gateway"
keywords = ["ohttp", "gateway", "server", "privacy"]
license = "MPL-2.0"
readme = "README.md"
repository = "https://github.com/gruberb/ohttp-gateway"
[dependencies]
# Web framework and async runtime
axum = { version = "0.7", features = ["macros"] }
tokio = { version = "1.46", features = ["full"] }
hyper = { version = "1.6", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
# HTTP client for backend requests
reqwest = { version = "0.12", features = ["json", "stream"] }
# OHTTP implementation - Using the martinthomson/ohttp crate
ohttp = { version = "0.7.1", features = ["rust-hpke"] }
bhttp = "0.7.1"
# Middleware and utilities
tower = "0.4"
tower-http = { version = "0.6", features = [
"cors",
"trace",
"compression-br",
"timeout",
] }
# Serialization and configuration
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
config = "0.14"
# Logging and observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
chrono = "0.4"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Metrics and monitoring
prometheus = "0.13"
axum-prometheus = "0.7"
# Security and validation
validator = { version = "0.18", features = ["derive"] }
jsonwebtoken = "9.3"
uuid = { version = "1.17", features = ["v4"] }
# Async utilities
tokio-util = "0.7"
futures = "0.3"
# Random number generation
hex = "0.4"
rand = "0.8"
# Configuration management
clap = { version = "4.5", features = ["derive", "env"] }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
hyper = "0.14"
rand = "0.8"
[profile.release]
lto = "fat"