docs: 更新全部 markdown 文档 — v0.3.0
- README: 测试数 81、输出格式表 + vCard 10字段、透视矫正、格式扩展 - CHANGELOG: v0.3.0 条目(格式扩展+解码增强+vCard扩展) - ROADMAP: v0.2.0/v0.3.0 移至已交付,更新下一版本规划 - CLAUDE.md: 测试 81→105、perspective.rs 模块、Web fmt 参数
This commit is contained in:
+25
-1
@@ -1,5 +1,29 @@
|
||||
# Changelog
|
||||
|
||||
## 0.3.0 (2026-06-19)
|
||||
|
||||
### Added
|
||||
|
||||
- **格式扩展** — 新增 BMP/JPEG/WebP 图像输出
|
||||
- `core/src/render/image.rs`:`OutputFormat` 枚举 (Png/Bmp/Jpeg/WebP)
|
||||
- `QrCode::to_image_bytes()` — 参数化格式输出
|
||||
- CLI `-f`/`--format` (png/bmp/jpeg/webp)
|
||||
- Web API `fmt` 参数扩展至全部 4 种格式
|
||||
- **解码增强** — 透视矫正
|
||||
- `core/src/decoder/perspective.rs`:旋转矫正流水线
|
||||
- 自动检测 finder → 计算旋转角 → 仿射变换 → 再解码
|
||||
- `decode_image` 自动重试矫正路径
|
||||
- **vCard 扩展** — 新增 5 字段
|
||||
- TITLE(职位)/ URL(网址)/ BDAY(生日)/ NOTE(备注)/ PHOTO(照片)
|
||||
- Rust `text_builder` + TypeScript `qrText` + VCardMode UI 同步
|
||||
- CLI 新增 `--title` `--vcard-url` `--birthday` `--note` `--photo`
|
||||
- 中/英 i18n 翻译
|
||||
|
||||
### Changed
|
||||
|
||||
- `core/src/render/png.rs` → `image.rs`(格式无关化)
|
||||
- `QrCode::to_png_bytes` 保留为 `to_image_bytes` 的便捷方法
|
||||
|
||||
## 0.1.0 (2026-06-19)
|
||||
|
||||
### Added
|
||||
@@ -65,7 +89,7 @@
|
||||
- GUI:React Context + useReducer,共享文本构造工具 (utils/qrText.ts)
|
||||
- CLI:clap derive + anyhow 错误处理
|
||||
- Web:axum 0.8 + tokio,编译期 HTML 嵌入 (include_str!)
|
||||
- 96 个测试(72 单元 + 24 集成)
|
||||
- 105 个测试(81 单元 + 24 集成)
|
||||
- NSIS Windows 安装包 + Docker Alpine 镜像
|
||||
- 文档:API doc comments(rustdoc 可用)+ 3 个代码示例
|
||||
- 社区:CONTRIBUTING / CODE_OF_CONDUCT / SECURITY / Issue & PR 模板
|
||||
|
||||
Reference in New Issue
Block a user