remove OIDC/Postgres, replace ApiError w/ AppError, move params to api-types

This commit is contained in:
2026-07-12 05:14:17 +02:00
parent c0e685a4ee
commit 9b18d3ff6d
42 changed files with 243 additions and 3367 deletions

View File

@@ -10,7 +10,6 @@ path = "src/main.rs"
[features]
default = ["sqlite", "jellyfin"]
sqlite = ["dep:adapter-sqlite", "infra-wiring/sqlite"]
postgres = ["dep:adapter-postgres", "infra-wiring/postgres"]
jellyfin = ["dep:adapter-jellyfin"]
[dependencies]
@@ -21,7 +20,6 @@ adapter-auth = { workspace = true }
adapter-event-publisher = { workspace = true }
adapter-sqlite = { workspace = true, optional = true }
adapter-postgres = { workspace = true, optional = true }
adapter-jellyfin = { workspace = true, optional = true }
rmcp = { version = "0.1", features = ["server", "transport-io"] }

View File

@@ -118,18 +118,6 @@ fn wire_repositories(pool: &DbPool) -> anyhow::Result<WireOutput> {
library_query: w.library_query,
})
}
#[cfg(feature = "postgres")]
DbPool::Postgres(pg_pool) => {
let w = adapter_postgres::wire(pg_pool.clone());
Ok(WireOutput {
channel_command: w.channel_command,
channel_query: w.channel_query,
schedule_command: w.schedule_command,
schedule_query: w.schedule_query,
library_query: w.library_query,
})
}
_ => anyhow::bail!("database backend not compiled into this binary"),
}
}