refactor: presentation becomes http-axum adapter, absorbs templates

This commit is contained in:
2026-10-25 21:34:09 +01:00
parent 2875594ed9
commit a931fb548f
94 changed files with 99 additions and 126 deletions

81
Cargo.lock generated
View File

@@ -919,6 +919,7 @@ dependencies = [
"config",
"domain",
"export",
"http-axum",
"image-converter",
"importer",
"media-server",
@@ -926,7 +927,6 @@ dependencies = [
"nats",
"object-storage",
"poster-fetcher",
"presentation",
"rss 0.1.0",
"serde_json",
"sqlite",
@@ -2409,6 +2409,39 @@ dependencies = [
"itoa",
]
[[package]]
name = "http-axum"
version = "0.1.0"
dependencies = [
"anyhow",
"api-types",
"application",
"askama",
"async-trait",
"axum",
"axum-governor",
"bootstrap",
"bytes",
"chrono",
"chrono-tz",
"domain",
"dotenvy",
"futures",
"infer",
"percent-encoding",
"serde",
"serde_json",
"tokio",
"tower",
"tower-http",
"tracing",
"tracing-subscriber",
"utoipa",
"utoipa-scalar",
"utoipa-swagger-ui",
"uuid",
]
[[package]]
name = "http-body"
version = "1.0.1"
@@ -3983,39 +4016,6 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
[[package]]
name = "presentation"
version = "0.1.0"
dependencies = [
"anyhow",
"api-types",
"application",
"async-trait",
"axum",
"axum-governor",
"bootstrap",
"bytes",
"chrono",
"chrono-tz",
"domain",
"dotenvy",
"futures",
"infer",
"percent-encoding",
"serde",
"serde_json",
"template-askama",
"tokio",
"tower",
"tower-http",
"tracing",
"tracing-subscriber",
"utoipa",
"utoipa-scalar",
"utoipa-swagger-ui",
"uuid",
]
[[package]]
name = "prettyplease"
version = "0.2.37"
@@ -4938,8 +4938,8 @@ dependencies = [
"domain",
"dotenvy",
"futures",
"http-axum",
"http-body-util",
"presentation",
"rss 0.1.0",
"serde_json",
"sqlite",
@@ -5610,17 +5610,6 @@ dependencies = [
"windows-sys 0.61.2",
]
[[package]]
name = "template-askama"
version = "0.1.0"
dependencies = [
"api-types",
"askama",
"chrono",
"domain",
"uuid",
]
[[package]]
name = "tendril"
version = "0.4.3"