Skip to main content

mas_axum_utils/
lib.rs

1// Copyright 2025, 2026 Element Creations Ltd.
2// Copyright 2024, 2025 New Vector Ltd.
3// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
4//
5// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
6// Please see LICENSE files in the repository root for full details.
7
8#![deny(clippy::future_not_send)]
9#![allow(clippy::module_name_repetitions)]
10
11pub mod client_authorization;
12pub mod cookies;
13pub mod csrf;
14pub mod error_wrapper;
15pub mod fancy_error;
16pub mod jwt;
17pub mod language_detection;
18pub mod log_context;
19pub mod sentry;
20pub mod session;
21pub mod user_authorization;
22
23pub use axum;
24
25pub use self::{
26    error_wrapper::ErrorWrapper,
27    fancy_error::{GenericError, InternalError},
28    log_context::RecordAsRequester,
29    session::{SessionInfo, SessionInfoExt},
30};