mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-12 19:34:54 +00:00
49e8fe57f4
* Add some drive-by docstrings
* Change text rendering of catch_http_codes::HttpError
Using `#[source]` is unnatural here because it makes it look like
two distinct errors (one being a cause of the other),
when in reality it is just one error, with 2 parts.
Using `Display` formatting for that leads to a more natural error.
* Add constraints to `catch_http_code{,s}` methods
Not strictly required, but does two things:
- documents what kind of function is expected
- provides a small extra amount of type enforcement at the call site,
rather than later on when you find the result doesn't implement Service
* Add a `catch_http_errors` shorthand
Nothing major, just a quality of life improvement so you don't have to
repetitively write out what a HTTP error is
* Unexpected error page: remove leading whitespace from preformatted 'details' section
The extra whitespace was probably unintentional and makes the error harder to read,
particularly when it wraps onto a new line unnecessarily
* Capture and log Matrix errors received from Synapse
* Drive-by clippy fix: use clamp instead of min().max()
* Convert `err(Display)` to `err(Debug)` for `anyhow::Error`s in matrix-synapse support module
28 lines
554 B
TOML
28 lines
554 B
TOML
[package]
|
|
name = "mas-matrix-synapse"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-trait.workspace = true
|
|
http.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tower.workspace = true
|
|
tracing.workspace = true
|
|
url.workspace = true
|
|
urlencoding = "2.1.3"
|
|
|
|
mas-axum-utils.workspace = true
|
|
mas-http.workspace = true
|
|
mas-matrix.workspace = true
|