# 市场监控频道 — Rust 独立网页版 ## 架构 ``` 浏览器 http://VPS:3001 │ ▼ Rust 独立进程 (Axum + Askama + HTMX) │ 直接读 SQLite ▼ polyweather.db ← Python 采集管道写入 └ airport_obs_log 表 └ deb_predictions 表(今日最高实测) ``` 零 Python 依赖。Rust 直接从 SQLite 拿温度数据,自给自足。 ## 技术选型 | 层 | 库 | 理由 | |---|---|---| | HTTP 服务 | **Axum** 0.8 | Tokio 生态,类型安全路由 | | 模板引擎 | **Askama** 0.12 | 编译期检查模板,零运行时开销 | | SQLite | **rusqlite** | 读 airport_obs_log 拿温度趋势 | | 自动更新 | **HTMX** | 一个 `