mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-14 06:47:31 +00:00
ulid 3 moves to `rand` 0.10, so it no longer pulls the `rand` 0.9 generation. Only `opentelemetry_sdk` and `sentry` still need it. ULID generation keeps going through `UlidExt`, whose bit layout matches ulid's own `from_datetime_with_source`. The only API change affecting MAS is the rename of `Ulid::new` to `Ulid::generate`, which the clippy ban list now targets.
30 lines
1.9 KiB
TOML
30 lines
1.9 KiB
TOML
# Copyright 2025, 2026 Element Creations Ltd.
|
|
# Copyright 2025 New Vector Ltd.
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
# Please see LICENSE files in the repository root for full details.
|
|
|
|
doc-valid-idents = ["OpenID", "OAuth", "UserInfo", "..", "PostgreSQL", "SQLite"]
|
|
|
|
disallowed-methods = [
|
|
{ path = "rand::rng", reason = "do not create rngs on the fly, pass them as parameters" },
|
|
{ path = "chrono::Utc::now", reason = "source the current time from the clock instead" },
|
|
# ulid's own constructors/accessors below either create their own RNG or use
|
|
# `SystemTime`. Use `mas_data_model::UlidExt` instead so ULID generation takes an
|
|
# injected RNG and `chrono` timestamps.
|
|
{ path = "ulid::Ulid::generate", reason = "use mas_data_model::UlidExt::from_datetime_with_rng instead" },
|
|
{ path = "ulid::Ulid::with_source", reason = "use mas_data_model::UlidExt::from_datetime_with_rng instead" },
|
|
{ path = "ulid::Ulid::from_datetime", reason = "use mas_data_model::UlidExt::from_datetime_with_rng instead" },
|
|
{ path = "ulid::Ulid::from_datetime_with_source", reason = "use mas_data_model::UlidExt::from_datetime_with_rng instead" },
|
|
{ path = "ulid::Ulid::datetime", reason = "use mas_data_model::UlidExt::datetime_utc instead" },
|
|
{ path = "reqwest::Client::new", reason = "use mas_http::reqwest_client instead" },
|
|
{ path = "reqwest::RequestBuilder::send", reason = "use send_traced instead" },
|
|
]
|
|
|
|
disallowed-types = [
|
|
{ path = "std::path::PathBuf", reason = "use camino::Utf8PathBuf instead" },
|
|
{ path = "std::path::Path", reason = "use camino::Utf8Path instead" },
|
|
{ path = "axum::extract::Query", reason = "use axum_extra::extract::Query instead. The built-in version doesn't deserialise lists."},
|
|
{ path = "axum::extract::rejection::QueryRejection", reason = "use axum_extra::extract::QueryRejection instead"}
|
|
]
|