ohttp-gateway/Cargo.toml

78 lines
1.9 KiB
TOML
Raw Permalink Normal View History

2025-07-17 12:14:22 +00:00
[package]
2025-07-17 12:29:20 +00:00
authors = ["Bastian Gruber <foreach@me.com>"]
version = "1.0.0"
2025-07-17 12:14:22 +00:00
edition = "2024"
2025-07-17 12:29:20 +00:00
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"
2025-07-17 12:29:20 +00:00
readme = "README.md"
repository = "https://github.com/gruberb/ohttp-gateway"
2025-07-17 12:14:22 +00:00
[dependencies]
# Web framework and async runtime
axum = { version = "0.7", features = ["macros"] }
2025-07-17 12:29:20 +00:00
tokio = { version = "1.46", features = ["full"] }
hyper = { version = "1.6", features = ["full"] }
2025-07-17 12:14:22 +00:00
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"
2025-07-17 12:14:22 +00:00
# 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"] }
2025-07-17 12:29:20 +00:00
jsonwebtoken = "9.3"
uuid = { version = "1.17", features = ["v4"] }
2025-07-17 12:14:22 +00:00
# Async utilities
tokio-util = "0.7"
futures = "0.3"
# Random number generation
hex = "0.4"
rand = "0.8"
# Configuration management
2025-07-17 12:29:20 +00:00
clap = { version = "4.5", features = ["derive", "env"] }
2025-07-17 12:14:22 +00:00
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
hyper = "0.14"
rand = "0.8"
2025-07-17 12:14:22 +00:00
[profile.release]
lto = "fat"