Added apis

This commit is contained in:
2022-10-04 11:06:48 +02:00
parent 6234cf18e8
commit ae74f66c3a
28 changed files with 392 additions and 300 deletions

64
Cargo.lock generated
View File

@@ -189,6 +189,7 @@ dependencies = [
"static_assertions",
"tempfile",
"thiserror",
"uuid",
]
[[package]]
@@ -640,7 +641,7 @@ dependencies = [
]
[[package]]
name = "como_bin"
name = "como_api"
version = "0.1.0"
dependencies = [
"anyhow",
@@ -652,6 +653,38 @@ dependencies = [
"axum-sessions",
"como_core",
"como_domain",
"como_gql",
"como_infrastructure",
"cookie",
"dotenv",
"rand_core",
"serde",
"serde_json",
"sqlx 0.6.1",
"tokio",
"tower",
"tower-http",
"tracing",
"tracing-subscriber",
"uuid",
]
[[package]]
name = "como_bin"
version = "0.1.0"
dependencies = [
"anyhow",
"argon2",
"async-graphql",
"async-graphql-axum",
"axum",
"axum-extra",
"axum-sessions",
"clap",
"como_api",
"como_core",
"como_domain",
"como_gql",
"como_infrastructure",
"cookie",
"dotenv",
@@ -674,6 +707,7 @@ dependencies = [
"async-trait",
"axum",
"clap",
"como_domain",
"dotenv",
"mockall",
"rust-argon2",
@@ -693,11 +727,39 @@ name = "como_domain"
version = "0.1.0"
dependencies = [
"anyhow",
"async-graphql",
"serde",
"serde_json",
"uuid",
]
[[package]]
name = "como_gql"
version = "0.1.0"
dependencies = [
"anyhow",
"argon2",
"async-graphql",
"async-graphql-axum",
"axum",
"axum-extra",
"axum-sessions",
"como_core",
"como_domain",
"como_infrastructure",
"cookie",
"dotenv",
"rand_core",
"serde",
"serde_json",
"sqlx 0.6.1",
"tokio",
"tower-http",
"tracing",
"tracing-subscriber",
"uuid",
]
[[package]]
name = "como_infrastructure"
version = "0.1.0"