1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Move async-graphql to workspace deps & disable apollo tracing

This commit is contained in:
Quentin Gliech
2024-05-15 14:26:37 +02:00
parent c8e074c8e2
commit 098f7fba03
4 changed files with 8 additions and 4 deletions

View File

@@ -55,6 +55,11 @@ mas-templates = { path = "./crates/templates/", version = "=0.9.0" }
mas-tower = { path = "./crates/tower/", version = "=0.9.0" } mas-tower = { path = "./crates/tower/", version = "=0.9.0" }
oauth2-types = { path = "./crates/oauth2-types/", version = "=0.9.0" } oauth2-types = { path = "./crates/oauth2-types/", version = "=0.9.0" }
# GraphQL server
[workspace.dependencies.async-graphql]
version = "6.0.11"
features = ["chrono", "url", "tracing"]
# Utility to write and implement async traits # Utility to write and implement async traits
[workspace.dependencies.async-trait] [workspace.dependencies.async-trait]
version = "0.1.80" version = "0.1.80"

View File

@@ -13,7 +13,7 @@ workspace = true
[dependencies] [dependencies]
anyhow.workspace = true anyhow.workspace = true
async-graphql = { version = "6.0.11", features = ["chrono", "url"] } async-graphql.workspace = true
async-trait.workspace = true async-trait.workspace = true
chrono.workspace = true chrono.workspace = true
lettre.workspace = true lettre.workspace = true

View File

@@ -34,7 +34,7 @@ axum = "0.6.20"
axum-macros = "0.3.8" axum-macros = "0.3.8"
axum-extra = { version = "0.8.0", features = ["cookie-private"] } axum-extra = { version = "0.8.0", features = ["cookie-private"] }
async-graphql = { version = "6.0.11", features = ["tracing", "apollo_tracing"] } async-graphql.workspace = true
# Emails # Emails
lettre.workspace = true lettre.workspace = true

View File

@@ -15,7 +15,7 @@
use std::sync::Arc; use std::sync::Arc;
use async_graphql::{ use async_graphql::{
extensions::{ApolloTracing, Tracing}, extensions::Tracing,
http::{playground_source, GraphQLPlaygroundConfig, MultipartOptions}, http::{playground_source, GraphQLPlaygroundConfig, MultipartOptions},
}; };
use axum::{ use axum::{
@@ -110,7 +110,6 @@ pub fn schema(
mas_graphql::schema_builder() mas_graphql::schema_builder()
.extension(Tracing) .extension(Tracing)
.extension(ApolloTracing)
.data(state) .data(state)
.finish() .finish()
} }