Skip to content

Commit dfb9d59

Browse files
authored
feat: bump to axum 0.7 (#16)
1 parent 4b5efc2 commit dfb9d59

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ profiler = ["alloc/profiler"]
3737
rate_limit = ["dep:rate_limit"]
3838

3939
[workspace.dependencies]
40-
aws-sdk-s3 = "1.13"
40+
aws-sdk-s3 = "1.21.0"
4141

4242
[dependencies]
4343
alloc = { path = "./crates/alloc", optional = true }
@@ -53,9 +53,9 @@ rate_limit = { path = "./crates/rate_limit", optional = true }
5353
anyhow = "1"
5454
structopt = { version = "0.3", default-features = false }
5555
tokio = { version = "1", features = ["full"] }
56-
hyper = { version = "0.14", features = ["full"] }
56+
hyper = { version = "1.2.0", features = ["full"] }
5757
tower = { version = "0.4", features = ["util", "filter"] }
58-
axum = "0.6.1"
58+
axum = "0.7.5"
5959

6060
[[example]]
6161
name = "alloc_profiler"

crates/geoip/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ middleware = ["dep:tower", "dep:tower-layer", "dep:axum-client-ip", "dep:http-bo
1111
[dependencies]
1212
tower = { version = "0.4", optional = true }
1313
tower-layer = { version = "0.3", optional = true }
14-
http-body = { version = "0.4", optional = true }
15-
axum-client-ip = { version = "0.4", optional = true }
14+
http-body = { version = "1.0.0", optional = true }
15+
axum-client-ip = { version = "0.5.1", optional = true }
1616
bitflags = "2.4"
17-
hyper = "0.14"
17+
hyper = "1.2.0"
1818
tracing = "0.1"
1919
thiserror = "1.0"
2020
futures = "0.3"
@@ -24,4 +24,4 @@ maxminddb = "0.23"
2424

2525
[dev-dependencies]
2626
tokio = { version = "1", features = ["full"] }
27-
axum = "0.6"
27+
axum = "0.7.5"

crates/geoip/src/block/middleware/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use {
33
block::{middleware::GeoBlockLayer, BlockingPolicy},
44
LocalResolver,
55
},
6-
hyper::{Body, Request, Response, StatusCode},
6+
axum::body::Body,
7+
hyper::{Request, Response, StatusCode},
78
maxminddb::{geoip2, geoip2::City},
89
std::{convert::Infallible, net::IpAddr, sync::Arc},
910
tower::{Service, ServiceBuilder, ServiceExt},

crates/http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ metrics = ["dep:metrics", "dep:future"]
1111
[dependencies]
1212
future = { path = "../future", features = ["metrics"], optional = true }
1313
metrics = { path = "../metrics", optional = true }
14-
hyper = "0.14"
14+
hyper = "1.2.0"
1515
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "time", "macros"] }

examples/geoblock.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use {
2-
hyper::{Body, Request, Response, StatusCode},
2+
axum::body::Body,
3+
hyper::{Request, Response, StatusCode},
34
std::{convert::Infallible, net::IpAddr},
45
tower::{Service, ServiceBuilder, ServiceExt},
56
wc::geoip::{

0 commit comments

Comments
 (0)