build: scaffold axum api server entry

This commit is contained in:
2026-04-21 01:00:46 +08:00
parent b8df838eb2
commit 4b549ce6a7
9 changed files with 561 additions and 10 deletions

View File

@@ -14,17 +14,22 @@
## 2. 当前阶段说明
当前提交仅完成目录占位,不提前进入具体实现。
当前目录已经完成以下基础骨架:
1. 目录占位
2. `Cargo.toml`
3. `src/main.rs`
4. `src/app.rs`
5. `src/state.rs`
后续与本 package 直接相关的任务包括:
1. 搭建 `main.rs` / `Router` / `with_state`
2. 接入统一配置加载
3. 接入统一日志与 tracing
4. 接入 `request_id`
5. 接入统一错误处理中间件
6. 接入 response envelope
7. 接入 `/healthz`
1. 接入统一配置加载
2. 接入统一日志与 tracing
3. 接入 `request_id`
4. 接入统一错误处理中间件
5. 接入 response envelope
6. 接入 `/healthz`
## 3. 边界约束