wip: implemented backend

This commit is contained in:
Jun Kurihara 2023-11-24 17:57:33 +09:00
commit 3c6e4e5757
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
16 changed files with 1173 additions and 23 deletions

View file

@ -15,15 +15,15 @@ publish = false
default = ["http3-s2n", "sticky-cookie", "cache"]
http3-quinn = ["socket2"] #"quinn", "h3", "h3-quinn", ]
http3-s2n = [] #"h3", "s2n-quic", "s2n-quic-rustls", "s2n-quic-h3"]
sticky-cookie = [] #"base64", "sha2", "chrono"]
sticky-cookie = ["base64", "sha2", "chrono"]
cache = [] #"http-cache-semantics", "lru"]
native-roots = [] #"hyper-rustls/native-tokio"]
[dependencies]
# rand = "0.8.5"
# rustc-hash = "1.1.0"
rand = "0.8.5"
rustc-hash = "1.1.0"
# bytes = "1.5.0"
# derive_builder = "0.12.0"
derive_builder = "0.12.0"
futures = { version = "0.3.29", features = ["alloc", "async-await"] }
tokio = { version = "1.34.0", default-features = false, features = [
"net",
@ -34,13 +34,13 @@ tokio = { version = "1.34.0", default-features = false, features = [
"fs",
] }
async-trait = "0.1.74"
# hot_reload = "0.1.4" # reloading certs
# Error handling
anyhow = "1.0.75"
thiserror = "1.0.50"
# http and tls
hot_reload = "0.1.4" # reloading certs
http = "1.0.0"
# http-body-util = "0.1.0"
hyper = { version = "1.0.1", default-features = false }
@ -75,14 +75,14 @@ socket2 = { version = "0.5.5", features = ["all"], optional = true }
# http-cache-semantics = { path = "../submodules/rusty-http-cache-semantics/", optional = true }
# lru = { version = "0.12.0", optional = true }
# # cookie handling for sticky cookie
# chrono = { version = "0.4.31", default-features = false, features = [
# "unstable-locales",
# "alloc",
# "clock",
# ], optional = true }
# base64 = { version = "0.21.5", optional = true }
# sha2 = { version = "0.10.8", default-features = false, optional = true }
# cookie handling for sticky cookie
chrono = { version = "0.4.31", default-features = false, features = [
"unstable-locales",
"alloc",
"clock",
], optional = true }
base64 = { version = "0.21.5", optional = true }
sha2 = { version = "0.10.8", default-features = false, optional = true }
# [dev-dependencies]