fix: release 编译修复 — FromStr类型 + env borrow + tower limit feature

- CLI: EcLevel::from_str 返回 QrError 而非 String, 修正 map_err 类型注解
- CLI: 密码环境变量 or_else 闭包 borrow 修复 (临时值生命周期)
- Web: tower 添加 limit feature, ConcurrencyLimitLayer 替代不存在的 RateLimitLayer
- Web: QrError 转为 .to_string() 适配 IntoResponse
This commit is contained in:
2026-06-21 16:22:05 +08:00
parent b053272825
commit 5651dbf732
4 changed files with 8 additions and 5 deletions
Generated
+1
View File
@@ -4829,6 +4829,7 @@ dependencies = [
"pin-project-lite",
"sync_wrapper",
"tokio",
"tokio-util",
"tower-layer",
"tower-service",
"tracing",