mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-15 01:35:26 +00:00
a0f5f3c642
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
112 lines
2.4 KiB
TOML
112 lines
2.4 KiB
TOML
[workspace]
|
|
default-members = ["crates/cli"]
|
|
members = ["crates/*"]
|
|
resolver = "2"
|
|
|
|
# Updated in the CI with a `sed` command
|
|
package.version = "0.6.1"
|
|
|
|
package.license = "Apache-2.0"
|
|
package.authors = ["Quentin Gliech <quenting@element.io>"]
|
|
package.edition = "2021"
|
|
package.homepage = "https://matrix-org.github.io/matrix-authentication-service/"
|
|
package.repository = "https://github.com/matrix-org/matrix-authentication-service/"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[workspace.lints.clippy]
|
|
all = "deny"
|
|
pedantic = "warn"
|
|
|
|
str_to_string = "deny"
|
|
|
|
[workspace.lints.rustdoc]
|
|
broken_intra_doc_links = "deny"
|
|
|
|
[workspace.dependencies]
|
|
|
|
# High-level error handling
|
|
[workspace.dependencies.anyhow]
|
|
version = "1.0.75"
|
|
|
|
# UTF-8 paths
|
|
[workspace.dependencies.camino]
|
|
version = "1.1.6"
|
|
|
|
# Time utilities
|
|
[workspace.dependencies.chrono]
|
|
version = "0.4.31"
|
|
default-features = false
|
|
features = ["serde", "clock"]
|
|
|
|
# CLI argument parsing
|
|
[workspace.dependencies.clap]
|
|
version = "4.4.8"
|
|
features = ["derive"]
|
|
|
|
# HTTP request/response
|
|
[workspace.dependencies.http]
|
|
version = "0.2.11"
|
|
|
|
# Templates
|
|
[workspace.dependencies.minijinja]
|
|
version = "1.0.10"
|
|
|
|
# Random values
|
|
[workspace.dependencies.rand]
|
|
version = "0.8.5"
|
|
|
|
# Serialization and deserialization
|
|
[workspace.dependencies.serde]
|
|
version = "1.0.193"
|
|
features = ["derive"] # Most of the time, if we need serde, we need derive
|
|
|
|
# JSON serialization and deserialization
|
|
[workspace.dependencies.serde_json]
|
|
version = "1.0.108"
|
|
|
|
# Custom error types
|
|
[workspace.dependencies.thiserror]
|
|
version = "1.0.50"
|
|
|
|
# Logging and tracing
|
|
[workspace.dependencies.tracing]
|
|
version = "0.1.40"
|
|
[workspace.dependencies.tracing-subscriber]
|
|
version = "0.3.18"
|
|
|
|
# OpenTelemetry
|
|
[workspace.dependencies.opentelemetry]
|
|
version = "0.21.0"
|
|
features = ["trace", "metrics"]
|
|
[workspace.dependencies.opentelemetry-semantic-conventions]
|
|
version = "0.13.0"
|
|
[workspace.dependencies.tracing-opentelemetry]
|
|
version = "0.22.0"
|
|
default-features = false
|
|
|
|
# URL manipulation
|
|
[workspace.dependencies.url]
|
|
version = "2.5.0"
|
|
features = ["serde"]
|
|
|
|
# ULID support
|
|
[workspace.dependencies.ulid]
|
|
version = "1.1.0"
|
|
features = ["serde"]
|
|
|
|
# A few profile opt-level tweaks to make the test suite run faster
|
|
[profile.dev.package]
|
|
num-bigint-dig.opt-level = 3
|
|
sqlx-macros.opt-level = 3
|
|
cranelift-codegen.opt-level = 3
|
|
regalloc2.opt-level = 3
|
|
argon2.opt-level = 3
|
|
pbkdf2.opt-level = 3
|
|
bcrypt.opt-level = 3
|
|
sha2.opt-level = 3
|
|
digest.opt-level = 3
|
|
block-buffer.opt-level = 3
|
|
generic-array.opt-level = 3
|