feat: embed SvelteKit client assets in Rust binary

- Add include_dir for serving /_app static bundles from binary
- Add console-logger.js for structured JSON logs from Bun
- Fix API routing edge cases and add method restrictions
This commit is contained in:
2026-01-04 19:16:08 -06:00
parent d86027d27a
commit 32f1f88a90
5 changed files with 857 additions and 24 deletions
+3 -1
View File
@@ -6,8 +6,10 @@ edition = "2024"
[dependencies]
axum = "0.8.8"
clap = { version = "4.5.54", features = ["derive", "env"] }
include_dir = "0.7.4"
mime_guess = "2.0.5"
nu-ansi-term = "0.50.3"
reqwest = { version = "0.13", features = ["charset", "json"], default-features = false }
reqwest = { version = "0.13.1", default-features = false, features = ["rustls", "charset", "json", "stream"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.148"
time = { version = "0.3.44", features = ["formatting", "macros"] }