Skip to content

v0.5.0

@oliveagle oliveagle tagged this 04 Sep 10:46
- F1 类型化 Path/Query/Body 参数 + 422 校验 (24f955d) — params_typed.mojo 348 行
- F2 HTTPException + 统一 {detail,status} 错误体 (189feaa) — exceptions.mojo 267 行
- F3 Request/Response + 嵌套 JSON + 修复 405 body hang (066558f) — request_response.mojo 289 行
- F4 OpenAPI 3.0 + Swagger UI /docs (4e31883) — openapi.mojo 421 行
- F5 Streaming Response / SSE (ff72271) — streaming.mojo 178 行, format_sse_event 合规
- F6 /metrics Prometheus 文本 (e502a64) — bridge/metrics.rs 原子计数器
- F7 结构化 JSON access log (6d50010) — FASTAPI_MOJO_ACCESS_LOG=json env
- F8 Binary 体积瘦身 (5704be7) — strip --strip-unneeded: 5.5M → 2.8M (-49%)

验收 (2026-09-04 实测):
- e2e 118/118 全绿 (v0.4.0 79 → v0.5.0 118)
- cargo test 284 passed / 4 ignored / 0 failed / 0 warnings (clippy -D warnings)
- bench 6 场景 0 errors; get_root_10k_100c ≈ 32.9k req/s (vs C-only 基线 35.8k, -8.1% < 10% 容差)
- ldd build/fastapi_mojo 仅 libc; env -i 干净启动
- binary 2,809,736 B (≤4.2M 目标 33% 余量)
- Mojo + Rust only: C = 0, Python = 0, .venv 已删

关联: Goal-0001 (追加更新-11) / Goal-0002 (T1-T9 全部达成) / 决策-24/25/26
Assets 2
Loading