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

Move storage module to its own crate

This commit is contained in:
Quentin Gliech
2021-12-17 12:15:07 +01:00
parent 584294538b
commit ceb17d3646
46 changed files with 116 additions and 71 deletions

View File

@ -34,6 +34,7 @@ opentelemetry-zipkin = { version = "0.14.0", features = ["reqwest-client", "reqw
mas-config = { path = "../config" }
mas-core = { path = "../core" }
mas-templates = { path = "../templates" }
mas-storage = { path = "../storage" }
watchman_client = "0.7.1"
[dev-dependencies]

View File

@ -15,7 +15,7 @@
use anyhow::Context;
use clap::Parser;
use mas_config::DatabaseConfig;
use mas_core::storage::MIGRATOR;
use mas_storage::MIGRATOR;
use super::RootCommand;

View File

@ -15,7 +15,7 @@
use argon2::Argon2;
use clap::Parser;
use mas_config::DatabaseConfig;
use mas_core::storage::register_user;
use mas_storage::user::register_user;
use tracing::{info, warn};
use super::RootCommand;

View File

@ -22,10 +22,8 @@ use clap::Parser;
use futures::{future::TryFutureExt, stream::TryStreamExt};
use hyper::{header, Server, Version};
use mas_config::RootConfig;
use mas_core::{
storage::MIGRATOR,
tasks::{self, TaskQueue},
};
use mas_core::tasks::{self, TaskQueue};
use mas_storage::MIGRATOR;
use mas_templates::Templates;
use opentelemetry_http::HeaderExtractor;
use tower::{make::Shared, ServiceBuilder};