Skip to content

Commit 48e4da0

Browse files
committed
Bumpd dependencies
1 parent 2f3f1b1 commit 48e4da0

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ rust-version = "1.61"
1010
exclude = ["/.github", ".gitignore"]
1111

1212
[dependencies]
13-
axum = { version = "0.6.0-rc.2", features = ["headers"] }
14-
base64ct = { version = "1.5.2", features = ["std"] }
15-
bytes = "1.2.1"
13+
axum = { version = "0.6.1", features = ["headers"] }
14+
base64ct = { version = "1.5.3", features = ["std"] }
15+
bytes = "1.3.0"
1616
headers = "0.3.8"
1717
mime = "0.3.16"
1818
sha2 = "0.10.6"
19-
time = "0.3.15"
20-
tokio = { version = "1.21.2", features = ["sync", "time"] }
19+
time = "0.3.17"
20+
tokio = { version = "1.23.0", features = ["sync", "time"] }
2121
tower = { version = "0.4.13", features = ["util"] }
22-
tower-http = { version = "0.3.4", features = ["cors", "limit", "set-header"] }
22+
tower-http = { version = "0.3.5", features = ["cors", "limit", "set-header"] }
2323
tracing = "0.1.37"
2424
ulid = { version = "1.0.0", features = ["serde"] }
2525

2626
[dev-dependencies]
27-
hyper = "0.14.20"
28-
tokio = { version = "1.21.2", features = ["macros", "rt", "test-util"] }
27+
hyper = "0.14.23"
28+
tokio = { version = "1.23.0", features = ["macros", "rt", "test-util"] }
2929

3030
[workspace]
3131
members = ["server", "synapse"]

server/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ rust-version = "1.61"
1010

1111
[dependencies]
1212
bytesize = "1.1.0"
13-
clap = { version = "4.0.14", features = ["derive"] }
13+
clap = { version = "4.0.32", features = ["derive"] }
1414
humantime = "2.1.0"
15-
hyper = { version = "0.14.20", features = ["server"] }
16-
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
15+
hyper = { version = "0.14.23", features = ["server"] }
16+
tokio = { version = "1.23.0", features = ["macros", "rt-multi-thread"] }
1717
tracing = "0.1.37"
1818
tracing-subscriber = "0.3.16"
1919

src/handlers.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,13 @@ async fn get_session(
108108
}
109109

110110
#[must_use]
111-
#[allow(clippy::trait_duplication_in_bounds)]
112111
pub fn router<B>(prefix: &str, sessions: Sessions, max_bytes: usize) -> Router<(), B>
113112
where
114113
B: HttpBody + Send + 'static,
115114
<B as HttpBody>::Data: Send,
116115
<B as HttpBody>::Error: std::error::Error + Send + Sync,
117116
{
118-
let router = Router::with_state(sessions)
117+
let router = Router::new()
119118
.route("/", post(new_session))
120119
.route(
121120
"/:id",
@@ -136,5 +135,5 @@ where
136135
.expose_headers([ETAG, LOCATION, HeaderName::from_static("x-max-bytes")]),
137136
);
138137

139-
Router::new().nest(prefix, router)
138+
Router::new().nest(prefix, router).with_state(sessions)
140139
}

synapse/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ name = "matrix_http_rendezvous_synapse"
1414
crate-type = ["cdylib"]
1515

1616
[dependencies]
17-
anyhow = "1.0.65"
17+
anyhow = "1.0.68"
1818
bytesize = { version = "1.1.0", features = ["serde"] }
1919
http-body = "0.4.5"
2020
humantime = "2.1.0"
2121
humantime-serde = "1.1.1"
22-
pyo3 = { version = "0.17.2", features = ["extension-module", "abi3-py37", "anyhow"] }
22+
pyo3 = { version = "0.17.3", features = ["extension-module", "abi3-py37", "anyhow"] }
2323
pyo3-asyncio = "0.17.0"
2424
pyo3-log = "0.7.0"
2525
pyo3-matrix-synapse-module = "0.1.1"
26-
serde = { version = "1.0.145", features = ["derive"] }
27-
tokio = "1.21.2"
26+
serde = { version = "1.0.152", features = ["derive"] }
27+
tokio = "1.23.0"
2828
tower = { version = "0.4.13", features = ["util"] }
2929
tracing = { version = "0.1.37", features = ["log", "log-always"] }
3030

0 commit comments

Comments
 (0)