Skip to content

Commit

Permalink
Bumpd dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Dec 28, 2022
1 parent 2f3f1b1 commit 48e4da0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ rust-version = "1.61"
exclude = ["/.github", ".gitignore"]

[dependencies]
axum = { version = "0.6.0-rc.2", features = ["headers"] }
base64ct = { version = "1.5.2", features = ["std"] }
bytes = "1.2.1"
axum = { version = "0.6.1", features = ["headers"] }
base64ct = { version = "1.5.3", features = ["std"] }
bytes = "1.3.0"
headers = "0.3.8"
mime = "0.3.16"
sha2 = "0.10.6"
time = "0.3.15"
tokio = { version = "1.21.2", features = ["sync", "time"] }
time = "0.3.17"
tokio = { version = "1.23.0", features = ["sync", "time"] }
tower = { version = "0.4.13", features = ["util"] }
tower-http = { version = "0.3.4", features = ["cors", "limit", "set-header"] }
tower-http = { version = "0.3.5", features = ["cors", "limit", "set-header"] }
tracing = "0.1.37"
ulid = { version = "1.0.0", features = ["serde"] }

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

[workspace]
members = ["server", "synapse"]
6 changes: 3 additions & 3 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ rust-version = "1.61"

[dependencies]
bytesize = "1.1.0"
clap = { version = "4.0.14", features = ["derive"] }
clap = { version = "4.0.32", features = ["derive"] }
humantime = "2.1.0"
hyper = { version = "0.14.20", features = ["server"] }
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
hyper = { version = "0.14.23", features = ["server"] }
tokio = { version = "1.23.0", features = ["macros", "rt-multi-thread"] }
tracing = "0.1.37"
tracing-subscriber = "0.3.16"

Expand Down
5 changes: 2 additions & 3 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@ async fn get_session(
}

#[must_use]
#[allow(clippy::trait_duplication_in_bounds)]
pub fn router<B>(prefix: &str, sessions: Sessions, max_bytes: usize) -> Router<(), B>
where
B: HttpBody + Send + 'static,
<B as HttpBody>::Data: Send,
<B as HttpBody>::Error: std::error::Error + Send + Sync,
{
let router = Router::with_state(sessions)
let router = Router::new()
.route("/", post(new_session))
.route(
"/:id",
Expand All @@ -136,5 +135,5 @@ where
.expose_headers([ETAG, LOCATION, HeaderName::from_static("x-max-bytes")]),
);

Router::new().nest(prefix, router)
Router::new().nest(prefix, router).with_state(sessions)
}
8 changes: 4 additions & 4 deletions synapse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ name = "matrix_http_rendezvous_synapse"
crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0.65"
anyhow = "1.0.68"
bytesize = { version = "1.1.0", features = ["serde"] }
http-body = "0.4.5"
humantime = "2.1.0"
humantime-serde = "1.1.1"
pyo3 = { version = "0.17.2", features = ["extension-module", "abi3-py37", "anyhow"] }
pyo3 = { version = "0.17.3", features = ["extension-module", "abi3-py37", "anyhow"] }
pyo3-asyncio = "0.17.0"
pyo3-log = "0.7.0"
pyo3-matrix-synapse-module = "0.1.1"
serde = { version = "1.0.145", features = ["derive"] }
tokio = "1.21.2"
serde = { version = "1.0.152", features = ["derive"] }
tokio = "1.23.0"
tower = { version = "0.4.13", features = ["util"] }
tracing = { version = "0.1.37", features = ["log", "log-always"] }

Expand Down

0 comments on commit 48e4da0

Please sign in to comment.