wip: refactoring all the structure and improve error messages

This commit is contained in:
Jun Kurihara 2023-11-22 22:48:14 +09:00
commit de91c7a68f
No known key found for this signature in database
GPG key ID: 6D3FEE70E498C15B
10 changed files with 268 additions and 56 deletions

View file

@ -12,19 +12,19 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
# default = ["http3-s2n", "sticky-cookie", "cache"]
# http3-quinn = ["quinn", "h3", "h3-quinn", "socket2"]
# http3-s2n = ["h3", "s2n-quic", "s2n-quic-rustls", "s2n-quic-h3"]
# sticky-cookie = ["base64", "sha2", "chrono"]
# cache = ["http-cache-semantics", "lru"]
# native-roots = ["hyper-rustls/native-tokio"]
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"]
cache = [] #"http-cache-semantics", "lru"]
native-roots = [] #"hyper-rustls/native-tokio"]
[dependencies]
# rand = "0.8.5"
# rustc-hash = "1.1.0"
# bytes = "1.5.0"
# derive_builder = "0.12.0"
# futures = { version = "0.3.29", features = ["alloc", "async-await"] }
futures = { version = "0.3.29", features = ["alloc", "async-await"] }
tokio = { version = "1.34.0", default-features = false, features = [
"net",
"rt-multi-thread",
@ -44,7 +44,7 @@ thiserror = "1.0.50"
http = "1.0.0"
# http-body-util = "0.1.0"
hyper = { version = "1.0.1", default-features = false }
# hyper-util = { version = "0.1.1", features = ["full"] }
hyper-util = { version = "0.1.1", features = ["full"] }
# hyper-rustls = { version = "0.24.2", default-features = false, features = [
# "tokio-runtime",
# "webpki-tokio",
@ -68,8 +68,8 @@ tracing = { version = "0.1.40" }
# ], optional = true }
# s2n-quic-h3 = { path = "../submodules/s2n-quic-h3/", optional = true }
# s2n-quic-rustls = { version = "0.31.0", optional = true }
# # for UDP socket wit SO_REUSEADDR when h3 with quinn
# socket2 = { version = "0.5.5", features = ["all"], optional = true }
# for UDP socket wit SO_REUSEADDR when h3 with quinn
socket2 = { version = "0.5.5", features = ["all"], optional = true }
# # cache
# http-cache-semantics = { path = "../submodules/rusty-http-cache-semantics/", optional = true }