2 Commits

Author SHA1 Message Date
oudecheng
85c021f124 fix(deps): 升级 wechatbot 的 reqwest 至 0.13,消除版本冲突
主 crate 用 reqwest 0.13.2,而 vendored wechatbot 仍用 0.12,
导致 Cargo 同时编译两套 reqwest 及其传递依赖,拖慢编译、增大二进制。

改动:
- vendor/wechatbot/Cargo.toml: reqwest 0.12 -> 0.13,feature rustls-tls -> rustls
  (reqwest 0.13 移除了 rustls-tls feature,改为细粒度的 rustls)
- Cargo.lock: 合并两份 reqwest 为一份 0.13.3,移除 0.12.28 条目

wechatbot 对 reqwest 的使用仅限稳定客户端 API(Client::builder、
get/post/json/body/send、status/text/bytes/headers),0.12 -> 0.13 无破坏性变更,
源码零改动。

验证:
- cargo check 通过
- cargo test --no-run 全部测试二进制编译通过
- cargo test --lib: 494 passed,3 个失败经 stash 对照确认为预存技术债
2026-07-29 17:31:29 +08:00
597881f72e feat: Implement WeChatBot SDK with error handling and message protocol
- Add WeChatBotError enum for error handling with various error types.
- Create a Result type alias for easier error management.
- Implement ILinkClient for low-level API interactions including QR code generation, message sending, and updates retrieval.
- Define message types and structures for handling incoming messages and media content.
- Add tests for error handling and message parsing to ensure reliability.

Co-authored-by: Copilot <copilot@github.com>
2026-05-06 14:18:47 +08:00