1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-04-24 10:44:08 +00:00

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]
# 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"
futures-core = { version = "0.3.17", default-features = false }
http = "0.2.7"
http = { workspace = true }
log = "0.4"
socket2 = "0.5"
serde = "1"

View file

@ -113,7 +113,7 @@ bytestring = "1"
derive_more = { version = "1", features = ["as_ref", "deref", "deref_mut", "display", "error", "from"] }
encoding_rs = "0.8"
futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] }
http = "0.2.7"
http = { workspace = true }
httparse = "1.5.1"
httpdate = "1.0.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"] }
# http2
h2 = { version = "0.3.26", optional = true }
h2 = { workspace = true, optional = true }
# websockets
local-channel = { version = "0.1", optional = true }

View file

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

View file

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