refactor: 将 lazy_static 和 atty 替换为标准库实现以减少依赖

This commit is contained in:
2026-08-18 13:45:13 +08:00
parent a0ea03fd90
commit e6b8b344aa
4 changed files with 36 additions and 35 deletions

View File

@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
暂无。
## [0.6.1] - 2026-08-18
### 🔧 其他变更
- 依赖瘦身:移除未使用的直接依赖 `config``handlebars``shell-words``walkdir``console``lazy_static``atty`crate 总数由 341 降至 296release 二进制体积由 7.38 MB 降至 7.00 MB-5.2%
- `lazy_static!` 宏替换为标准库 `LazyLock``atty` 替换为标准库 `std::io::IsTerminal`
- `tokio` 特性由 `full` 精简为 `macros` + `rt-multi-thread`
- `regex` 关闭默认 unicode 特性(保留 `std` + `perf`),行为变化:`\s`/`\d`/`\w` 字符类仅匹配 ASCII对提交信息、版本号、邮箱、GPG Key ID 校验无实质影响
## [0.6.0] - 2026-08-17
### ✨ 新功能