You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Bump Rust dependencies and remove unused ones
This commit is contained in:
@ -6,12 +6,11 @@ edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
apalis-core = "0.4.2"
|
||||
apalis-core = "0.4.3"
|
||||
anyhow = "1.0.72"
|
||||
atty = "0.2.14"
|
||||
axum = "0.6.19"
|
||||
camino = "1.1.6"
|
||||
clap = { version = "4.3.18", features = ["derive"] }
|
||||
clap = { version = "4.3.19", features = ["derive"] }
|
||||
dotenv = "0.15.0"
|
||||
httpdate = "1.0.2"
|
||||
hyper = { version = "0.14.27", features = ["full"] }
|
||||
@ -20,7 +19,7 @@ listenfd = "1.0.1"
|
||||
rand = "0.8.5"
|
||||
rand_chacha = "0.3.1"
|
||||
rustls = "0.21.5"
|
||||
serde_json = "1.0.103"
|
||||
serde_json = "1.0.104"
|
||||
serde_yaml = "0.9.25"
|
||||
sqlx = { version = "0.7.1", features = ["runtime-tokio-rustls", "postgres"] }
|
||||
tokio = { version = "1.29.1", features = ["full"] }
|
||||
|
@ -17,7 +17,7 @@
|
||||
#![warn(clippy::pedantic)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::{io::IsTerminal, sync::Arc};
|
||||
|
||||
use anyhow::Context;
|
||||
use clap::Parser;
|
||||
@ -55,10 +55,12 @@ async fn try_main() -> anyhow::Result<()> {
|
||||
|
||||
// Setup logging
|
||||
// This writes logs to stderr
|
||||
let (log_writer, _guard) = tracing_appender::non_blocking(std::io::stderr());
|
||||
let output = std::io::stderr();
|
||||
let with_ansi = output.is_terminal();
|
||||
let (log_writer, _guard) = tracing_appender::non_blocking(output);
|
||||
let fmt_layer = tracing_subscriber::fmt::layer()
|
||||
.with_writer(log_writer)
|
||||
.with_ansi(atty::is(atty::Stream::Stderr));
|
||||
.with_ansi(with_ansi);
|
||||
let filter_layer = EnvFilter::try_from_default_env()
|
||||
.or_else(|_| EnvFilter::try_new("info"))
|
||||
.context("could not setup logging filter")?;
|
||||
|
Reference in New Issue
Block a user