fix: update h2 and http crates and use workspace

This commit is contained in:
Juan Aguilar Santillana 2024-12-02 13:20:30 +01:00
parent 002c1b5a19
commit 8a3c4f9025
5 changed files with 11 additions and 7 deletions

View File

@ -59,3 +59,7 @@ nonstandard_style = { level = "deny" }
[workspace.lints.clippy] [workspace.lints.clippy]
# clone_on_ref_ptr = { level = "deny" } # clone_on_ref_ptr = { level = "deny" }
[workspace.dependencies]
http = "1.1.0"
h2 = "0.4.7"

View File

@ -47,7 +47,7 @@ awc = { version = "3", default-features = false }
bytes = "1" bytes = "1"
futures-core = { version = "0.3.17", default-features = false } futures-core = { version = "0.3.17", default-features = false }
http = "0.2.7" http = { workspace = true }
log = "0.4" log = "0.4"
socket2 = "0.5" socket2 = "0.5"
serde = "1" serde = "1"

View File

@ -113,7 +113,7 @@ bytestring = "1"
derive_more = { version = "1", features = ["as_ref", "deref", "deref_mut", "display", "error", "from"] } derive_more = { version = "1", features = ["as_ref", "deref", "deref_mut", "display", "error", "from"] }
encoding_rs = "0.8" encoding_rs = "0.8"
futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] } futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] }
http = "0.2.7" http = { workspace = true }
httparse = "1.5.1" httparse = "1.5.1"
httpdate = "1.0.1" httpdate = "1.0.1"
itoa = "1" itoa = "1"
@ -127,7 +127,7 @@ tokio-util = { version = "0.7", features = ["io", "codec"] }
tracing = { version = "0.1.30", default-features = false, features = ["log"] } tracing = { version = "0.1.30", default-features = false, features = ["log"] }
# http2 # http2
h2 = { version = "0.3.26", optional = true } h2 = { workspace = true, optional = true }
# websockets # websockets
local-channel = { version = "0.1", optional = true } local-channel = { version = "0.1", optional = true }

View File

@ -26,7 +26,7 @@ unicode = ["dep:regex"]
[dependencies] [dependencies]
bytestring = ">=0.1.5, <2" bytestring = ">=0.1.5, <2"
cfg-if = "1" cfg-if = "1"
http = { version = "0.2.7", optional = true } http = { workspace = true, optional = true }
regex = { version = "1.5", optional = true } regex = { version = "1.5", optional = true }
regex-lite = "0.1" regex-lite = "0.1"
serde = "1" serde = "1"
@ -34,7 +34,7 @@ tracing = { version = "0.1.30", default-features = false, features = ["log"] }
[dev-dependencies] [dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] } criterion = { version = "0.5", features = ["html_reports"] }
http = "0.2.7" http = { workspace = true }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
percent-encoding = "2.1" percent-encoding = "2.1"

View File

@ -109,8 +109,8 @@ cfg-if = "1"
derive_more = { version = "1", features = ["display", "error", "from"] } derive_more = { version = "1", features = ["display", "error", "from"] }
futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] } futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] }
futures-util = { version = "0.3.17", default-features = false, features = ["alloc", "sink"] } futures-util = { version = "0.3.17", default-features = false, features = ["alloc", "sink"] }
h2 = "0.3.26" h2 = { workspace = true }
http = "0.2.7" http = { workspace = true }
itoa = "1" itoa = "1"
log =" 0.4" log =" 0.4"
mime = "0.3" mime = "0.3"