in progress, routers and main split up

This commit is contained in:
Per Stark
2025-03-04 07:44:00 +01:00
parent 037bc52a64
commit 847571729b
80 changed files with 599 additions and 1577 deletions

179
Cargo.lock generated
View File

@@ -156,6 +156,21 @@ version = "1.0.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7"
[[package]]
name = "api-router"
version = "0.1.0"
dependencies = [
"anyhow",
"axum",
"axum_typed_multipart",
"common",
"futures",
"serde",
"tempfile",
"tokio",
"tracing",
]
[[package]]
name = "approx"
version = "0.4.0"
@@ -1029,6 +1044,50 @@ dependencies = [
"inout",
]
[[package]]
name = "common"
version = "0.1.0"
dependencies = [
"anyhow",
"async-openai",
"async-stream",
"axum",
"axum-htmx",
"axum_session",
"axum_session_auth",
"axum_session_surreal",
"axum_typed_multipart",
"chrono",
"chrono-tz",
"config",
"futures",
"json-stream-parser",
"lettre",
"mime",
"mime_guess",
"minijinja",
"minijinja-autoreload",
"minijinja-contrib",
"mockall",
"plotly",
"reqwest",
"scraper",
"serde",
"serde_json",
"sha2",
"surrealdb",
"tempfile",
"text-splitter",
"thiserror",
"tiktoken-rs",
"tokio",
"tower-http",
"tracing",
"tracing-subscriber",
"url",
"uuid",
]
[[package]]
name = "concurrent-queue"
version = "2.5.0"
@@ -1981,6 +2040,35 @@ dependencies = [
"windows",
]
[[package]]
name = "html-router"
version = "0.1.0"
dependencies = [
"async-openai",
"async-stream",
"axum",
"axum-htmx",
"axum_session",
"axum_session_auth",
"axum_session_surreal",
"axum_typed_multipart",
"chrono-tz",
"common",
"futures",
"json-stream-parser",
"minijinja",
"minijinja-autoreload",
"minijinja-contrib",
"plotly",
"serde",
"serde_json",
"surrealdb",
"tempfile",
"tokio",
"tower-http",
"tracing",
]
[[package]]
name = "html5ever"
version = "0.27.0"
@@ -2626,6 +2714,53 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
[[package]]
name = "main"
version = "0.1.0"
dependencies = [
"anyhow",
"api-router",
"async-openai",
"async-stream",
"axum",
"axum-htmx",
"axum_session",
"axum_session_auth",
"axum_session_surreal",
"axum_typed_multipart",
"chrono",
"chrono-tz",
"common",
"config",
"futures",
"html-router",
"json-stream-parser",
"lettre",
"mime",
"mime_guess",
"minijinja",
"minijinja-autoreload",
"minijinja-contrib",
"mockall",
"plotly",
"reqwest",
"scraper",
"serde",
"serde_json",
"sha2",
"surrealdb",
"tempfile",
"text-splitter",
"thiserror",
"tiktoken-rs",
"tokio",
"tower-http",
"tracing",
"tracing-subscriber",
"url",
"uuid",
]
[[package]]
name = "maplit"
version = "1.0.2"
@@ -6034,47 +6169,3 @@ dependencies = [
"quote",
"syn 2.0.87",
]
[[package]]
name = "zettle_db"
version = "0.1.0"
dependencies = [
"anyhow",
"async-openai",
"async-stream",
"axum",
"axum-htmx",
"axum_session",
"axum_session_auth",
"axum_session_surreal",
"axum_typed_multipart",
"chrono",
"chrono-tz",
"config",
"futures",
"json-stream-parser",
"lettre",
"mime",
"mime_guess",
"minijinja",
"minijinja-autoreload",
"minijinja-contrib",
"mockall",
"plotly",
"reqwest",
"scraper",
"serde",
"serde_json",
"sha2",
"surrealdb",
"tempfile",
"text-splitter",
"thiserror",
"tiktoken-rs",
"tokio",
"tower-http",
"tracing",
"tracing-subscriber",
"url",
"uuid",
]